diff --git a/src/Service/HubSelector.php b/src/Service/HubSelector.php index 87aea726..b414e59c 100644 --- a/src/Service/HubSelector.php +++ b/src/Service/HubSelector.php @@ -365,6 +365,7 @@ class HubSelector 'db_distance' => $row['dist'], 'distance' => $dist, 'duration' => 0, + 'jo_count' => 0, ]; } else diff --git a/src/Service/JobOrderHandler/ResqJobOrderHandler.php b/src/Service/JobOrderHandler/ResqJobOrderHandler.php index 45842587..be3a4564 100644 --- a/src/Service/JobOrderHandler/ResqJobOrderHandler.php +++ b/src/Service/JobOrderHandler/ResqJobOrderHandler.php @@ -2035,8 +2035,8 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface // counters $hub['rider_count'] = count($hub['hub']->getAvailableRiders()); - // $hub['redis_jo_count'] = $hub['jo_count']; - $hub['redis_jo_count'] = 0; + $hub['redis_jo_count'] = $hub['jo_count']; + //$hub['redis_jo_count'] = 0; $hub['jo_count'] = count($hub['hub']->getForAssignmentJobOrders()); // check for rejection