From 2b5aca183c92c2409a5e3e9cf67d14d46a3be2eb Mon Sep 17 00:00:00 2001 From: Alex Janes Date: Sun, 19 Dec 2021 19:21:58 -0500 Subject: [PATCH] removed unnecessary additional data call from api method --- app/Http/Controllers/Api/AssetsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/AssetsController.php b/app/Http/Controllers/Api/AssetsController.php index 8ff56d7f63..8f67808c20 100644 --- a/app/Http/Controllers/Api/AssetsController.php +++ b/app/Http/Controllers/Api/AssetsController.php @@ -860,7 +860,7 @@ class AssetsController extends Controller public function checkinByTag(Request $request) { $this->authorize('checkin', Asset::class); - $asset = Asset::with('assetstatus')->where('asset_tag', $request->input('asset_tag'))->first(); + $asset = Asset::where('asset_tag', $request->input('asset_tag'))->first(); if($asset) { return $this->checkin($request, $asset->id);