Fix typo in JO status. #383

This commit is contained in:
Korina Cordero 2020-04-21 08:33:15 +00:00
parent da151245c9
commit 175b5855d3

View file

@ -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();