Yank assetlog from eager-load clause in API query for develop

This commit is contained in:
Brady Wetherington 2021-12-10 18:50:34 -08:00
parent 713fbdc0a6
commit ea71086dfc

View file

@ -114,8 +114,8 @@ class AssetsController extends Controller
} }
$assets = Company::scopeCompanyables(Asset::select('assets.*'), 'company_id', 'assets') $assets = Company::scopeCompanyables(Asset::select('assets.*'), 'company_id', 'assets')
->with('location', 'assetstatus', 'assetlog', 'company', 'defaultLoc','assignedTo', ->with('location', 'assetstatus', 'company', 'defaultLoc','assignedTo',
'model.category', 'model.manufacturer', 'model.fieldset', 'supplier'); '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. // These are used by the API to query against specific ID numbers.
// They are also used by the individual searches on detail pages like // They are also used by the individual searches on detail pages like