浏览代码

Refresh twofaccounts count after group assignment

Bubka 3 年之前
父节点
当前提交
6bc3f74459
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/Services/GroupService.php

+ 1 - 0
app/Services/GroupService.php

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