Fix for the jo count for both filtered and non-filtered area. #599

This commit is contained in:
Korina Cordero 2021-07-22 03:01:15 +00:00
parent cc4b68bd71
commit aa466c2cc5
2 changed files with 3 additions and 2 deletions

View file

@ -365,6 +365,7 @@ class HubSelector
'db_distance' => $row['dist'],
'distance' => $dist,
'duration' => 0,
'jo_count' => 0,
];
}
else

View file

@ -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