mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
removed unnecessary additional data call from api method
This commit is contained in:
parent
14b21a6e95
commit
2b5aca183c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue