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