Switch parameters of allowJOProgress to fix error #793

This commit is contained in:
Ramon Gutierrez 2024-03-19 15:25:32 +08:00
parent 9152370300
commit ca513355fe

View file

@ -1739,7 +1739,7 @@ class RiderAppController extends ApiController
return $msg;
}
protected function allowJOProgress($rider, JobOrder $jo)
protected function allowJOProgress(JobOrder $jo, $rider)
{
// TODO: add more statuses to block if needed, hence. this is a failsafe in case MQTT is not working.
switch ($jo->getStatus())