Fix typo in JO status. #382
This commit is contained in:
parent
4b1a9e7f46
commit
d0bf28c6d5
1 changed files with 2 additions and 2 deletions
|
|
@ -1021,7 +1021,7 @@ class APIController extends Controller implements LoggedController
|
|||
if (!empty($nearest_hub))
|
||||
{
|
||||
$jo->setHub($nearest_hub);
|
||||
$jo->setStatus(JOStatus::RIDER_ASSIGNED);
|
||||
$jo->setStatus(JOStatus::RIDER_ASSIGN);
|
||||
}
|
||||
|
||||
$em->persist($jo);
|
||||
|
|
@ -1035,7 +1035,7 @@ class APIController extends Controller implements LoggedController
|
|||
$em->persist($event);
|
||||
|
||||
// check JO status
|
||||
if ($jo->getStatus() == JOStatus::RIDER_ASSIGNED)
|
||||
if ($jo->getStatus() == JOStatus::RIDER_ASSIGN)
|
||||
{
|
||||
// add event logs for hub and rider assignments
|
||||
$hub_assign_event = new JOEvent();
|
||||
|
|
|
|||
Loading…
Reference in a new issue