From ea71086dfcd0631c08e16af5dacd920939498320 Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Fri, 10 Dec 2021 18:50:34 -0800 Subject: [PATCH] Yank assetlog from eager-load clause in API query for develop --- app/Http/Controllers/Api/AssetsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/AssetsController.php b/app/Http/Controllers/Api/AssetsController.php index cdf37a903c..808457f169 100644 --- a/app/Http/Controllers/Api/AssetsController.php +++ b/app/Http/Controllers/Api/AssetsController.php @@ -114,8 +114,8 @@ class AssetsController extends Controller } $assets = Company::scopeCompanyables(Asset::select('assets.*'), 'company_id', 'assets') - ->with('location', 'assetstatus', 'assetlog', 'company', 'defaultLoc','assignedTo', - 'model.category', 'model.manufacturer', 'model.fieldset', 'supplier'); + ->with('location', 'assetstatus', 'company', 'defaultLoc','assignedTo', + 'model.category', 'model.manufacturer', 'model.fieldset', 'supplier'); //it's tempting to add assetlogs here, but don't - it blows up update-heavy installations // These are used by the API to query against specific ID numbers. // They are also used by the individual searches on detail pages like