From 8dc5e7d6e970cde0f5b48ab44cb738c18f9f4c29 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Sun, 3 Oct 2021 11:15:28 +0200 Subject: [PATCH] Fix Group resource overriding TwoFAccounts count --- app/Http/Resources/GroupResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Resources/GroupResource.php b/app/Http/Resources/GroupResource.php index 5d987583..1567d4fc 100644 --- a/app/Http/Resources/GroupResource.php +++ b/app/Http/Resources/GroupResource.php @@ -17,7 +17,7 @@ class GroupResource extends JsonResource return [ 'id' => $this->id, 'name' => $this->name, - 'twofaccounts_count' => $this->twofaccounts()->count(), + 'twofaccounts_count' => $this->twofaccounts_count, ]; } } \ No newline at end of file