mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Format destroy responses
This commit is contained in:
parent
93542f3478
commit
29b5678a8d
|
@ -285,10 +285,10 @@ class AssetsController extends Controller
|
|||
->update(array('assigned_to' => null));
|
||||
|
||||
$asset->delete();
|
||||
return response()->json(['success' => trans('admin/hardware/message.delete.success')]);
|
||||
return response()->json(Helper::formatStandardApiResponse('success', null, trans('admin/hardware/message.delete.success')));
|
||||
|
||||
}
|
||||
return response()->json(['error' => trans('admin/hardware/message.does_not_exist')], 404);
|
||||
return response()->json(Helper::formatStandardApiResponse('error', null, trans('admin/hardware/message.does_not_exist')), 404);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue