Skip to content

Commit

Permalink
Merge pull request #14847 from uberbrady/users_index_api_optimization
Browse files Browse the repository at this point in the history
Optimization for listings of large numbers of users
  • Loading branch information
snipe committed Jun 10, 2024
2 parents 9fccafa + c8820ad commit 241e9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function index(Request $request)
'users.autoassign_licenses',
'users.website',

])->with('manager', 'groups', 'userloc', 'company', 'department', 'assets', 'licenses', 'accessories', 'consumables', 'createdBy')
])->with('manager', 'groups', 'userloc', 'company', 'department', 'assets', 'licenses', 'accessories', 'consumables', 'createdBy', 'managesUsers', 'managedLocations')
->withCount('assets as assets_count', 'licenses as licenses_count', 'accessories as accessories_count', 'consumables as consumables_count', 'managesUsers as manages_users_count', 'managedLocations as manages_locations_count');


Expand Down

0 comments on commit 241e9bc

Please sign in to comment.