Remove assets query, since we handle that via API call now and just need the count()

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-01-12 23:23:00 -08:00
parent 67ba8a6281
commit 8f4ec95fbb

View file

@ -57,7 +57,7 @@ class ViewAssetsController extends Controller
*/
public function getRequestableIndex()
{
$assets = Asset::with('model', 'defaultLoc', 'location', 'assignedTo', 'requests')->Hardware()->RequestableAssets()->get();
$assets = Asset::with('model', 'defaultLoc', 'location', 'assignedTo', 'requests')->Hardware()->RequestableAssets();
$models = AssetModel::with('category', 'requests', 'assets')->RequestableModels()->get();
return view('account/requestable-assets', compact('assets', 'models'));