Fix decline in rider api to always return true, so rider app can get out of decline / accept screen
This commit is contained in:
parent
cc12e150f4
commit
ee07c9cc84
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue