This commit is contained in:
andres 2020-07-22 19:57:06 -04:00
parent d23f1a77ca
commit 8994f3e15e

View file

@ -209,7 +209,7 @@ class ConsumablesController extends Controller
public function checkout(Request $request, $id) public function checkout(Request $request, $id)
{ {
// Check if the consumable exists // Check if the consumable exists
if (is_null($consumable = Consumable::find($id))) { // TODO -> message if (is_null($consumable = Consumable::find($id))) {
return response()->json(Helper::formatStandardApiResponse('error', null, trans('admin/consumables/message.does_not_exist'))); return response()->json(Helper::formatStandardApiResponse('error', null, trans('admin/consumables/message.does_not_exist')));
} }