Browse Source

Refresh twofaccounts count after group assignment

Bubka 3 năm trước cách đây
mục cha
commit
6bc3f74459
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/Services/GroupService.php

+ 1 - 0
app/Services/GroupService.php

@@ -151,6 +151,7 @@ class GroupService
             $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)));
         }