Fix syntax error on rider api controller #783

This commit is contained in:
Ramon Gutierrez 2024-03-11 23:50:44 +08:00
parent 801a274e8c
commit 175ac92765

View file

@ -833,9 +833,10 @@ class RiderAppController extends ApiController
$serial = $req->request->get('serial', ''); $serial = $req->request->get('serial', '');
if ($jo->getServiceType() == ServiceType::BATTERY_REPLACEMENT_NEW) if ($jo->getServiceType() == ServiceType::BATTERY_REPLACEMENT_NEW)
{ {
/*
if (empty($serial)) if (empty($serial))
// TODO: serial is required but disabling for now so old rider app works return new APIResponse(false, 'Missing parameter(s): serial');
//return new APIResponse(false, 'Missing parameter(s): serial'); */
} }
// set invoice to paid // set invoice to paid