Fix decline in rider api to always return true, so rider app can get out of decline / accept screen

This commit is contained in:
Kendrick Chan 2021-11-08 18:45:36 +08:00
parent cc12e150f4
commit ee07c9cc84

View file

@ -451,7 +451,8 @@ class RiderAppController extends APIController
$msg = $this->checkJO($req, $required_params, $jo, $rider); $msg = $this->checkJO($req, $required_params, $jo, $rider);
if (!empty($msg)) if (!empty($msg))
return new APIResponse(false, $msg); // TODO: this is a workaround for requeue, because rider app gets stuck in accept / decline screen
return new APIResponse(true, $msg);
// requeue it, instead of cancelling it // requeue it, instead of cancelling it
$jo->requeue(); $jo->requeue();