Remove unneeded call to Company::scopeCompanyables

This commit is contained in:
Marcus Moore 2023-08-08 17:22:15 -07:00
parent c752e1670c
commit c32f099053
No known key found for this signature in database

View file

@ -590,7 +590,7 @@ class ReportsController extends Controller
$executionTime = microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'];
\Log::debug('Added headers: '.$executionTime);
$assets = \App\Models\Company::scopeCompanyables(Asset::select('assets.*'))->with(
$assets = Asset::select('assets.*')->with(
'location', 'assetstatus', 'company', 'defaultLoc', 'assignedTo',
'model.category', 'model.manufacturer', 'supplier');