Use the redis job order count to display number of assigned job orders to hub. #626
This commit is contained in:
parent
38ce447b0a
commit
fe15385613
1 changed files with 4 additions and 2 deletions
|
|
@ -2120,7 +2120,8 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
||||||
$hub['rider_count'] = count($hub['hub']->getAvailableRiders());
|
$hub['rider_count'] = count($hub['hub']->getAvailableRiders());
|
||||||
$hub['redis_jo_count'] = $hub['jo_count'];
|
$hub['redis_jo_count'] = $hub['jo_count'];
|
||||||
//$hub['redis_jo_count'] = 0;
|
//$hub['redis_jo_count'] = 0;
|
||||||
$hub['jo_count'] = count($hub['hub']->getForAssignmentJobOrders());
|
// $hub['jo_count'] = count($hub['hub']->getForAssignmentJobOrders());
|
||||||
|
//$hub['jo_count'] = $hub['jo_count'];
|
||||||
|
|
||||||
// check for rejection
|
// check for rejection
|
||||||
$hub['flag_rejected'] = false;
|
$hub['flag_rejected'] = false;
|
||||||
|
|
@ -2426,7 +2427,8 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
||||||
$hub['rider_count'] = count($hub['hub']->getAvailableRiders());
|
$hub['rider_count'] = count($hub['hub']->getAvailableRiders());
|
||||||
// $hub['redis_jo_count'] = $hub['jo_count'];
|
// $hub['redis_jo_count'] = $hub['jo_count'];
|
||||||
$hub['redis_jo_count'] = 0;
|
$hub['redis_jo_count'] = 0;
|
||||||
$hub['jo_count'] = count($hub['hub']->getForAssignmentJobOrders());
|
// $hub['jo_count'] = count($hub['hub']->getForAssignmentJobOrders());
|
||||||
|
$hub['jo_count'] = 0;
|
||||||
|
|
||||||
// check for rejection
|
// check for rejection
|
||||||
$hub['flag_rejected'] = false;
|
$hub['flag_rejected'] = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue