Refresh twofaccounts count after group assignment

This commit is contained in:
Bubka 2021-11-13 12:13:22 +01:00
parent ca4b16a7cc
commit 6bc3f74459

View File

@ -151,6 +151,7 @@ public function assign($ids, Group $group = null) : void
$twofaccounts = TwoFAccount::find($ids);
$group->twofaccounts()->saveMany($twofaccounts);
$group->loadCount('twofaccounts');
Log::info(sprintf('Twofaccounts #%s assigned to groups %s', implode(',#', $ids), var_export($group->name, true)));
}