Merge branch '599-fix-jo-bug' into 'master-fix'

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

See merge request jankstudio/resq!718
This commit is contained in:
Kendrick Chan 2021-07-22 03:26:39 +00:00
commit 9ff7fc6ec0
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