Skip to content

Commit bcd32da

Browse files
committed
Remove loading user count since we don’t use it for depts
1 parent c56c7dd commit bcd32da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Api/DepartmentsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function index(Request $request) : JsonResponse | array
4040
'departments.image',
4141
'departments.tag_color',
4242
'departments.notes'
43-
])->with('users')->with('location')->with('manager')->with('company')->withCount('users as users_count');
43+
])->with('location')->with('manager')->with('company')->withCount('users as users_count');
4444

4545
if ($request->filled('search')) {
4646
$departments = $departments->TextSearch($request->input('search'));

0 commit comments

Comments
 (0)