removed unnecessary additional data call from api method

This commit is contained in:
Alex Janes 2021-12-19 19:21:58 -05:00
parent 14b21a6e95
commit 2b5aca183c

View file

@ -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);