Remove debug logs. Update rider's current job order when JO is requeued. #630
This commit is contained in:
parent
6fe63050c6
commit
9f5493c125
2 changed files with 6 additions and 3 deletions
|
|
@ -93,7 +93,7 @@ class UpdateUnacceptedJobOrdersCommand extends Command
|
|||
$jo = $jo_info['jo'];
|
||||
if ($jo != null)
|
||||
{
|
||||
$output->writeln('Requeuing for rider assignment ' . $jo->getID());
|
||||
// $output->writeln('Requeuing for rider assignment ' . $jo->getID());
|
||||
$id = $jo->getID();
|
||||
|
||||
// send notifications to rider app, telling rider that jo has been requeued
|
||||
|
|
@ -117,6 +117,9 @@ class UpdateUnacceptedJobOrdersCommand extends Command
|
|||
{
|
||||
// set rider's availability to true
|
||||
$rider->setAvailable(true);
|
||||
|
||||
// set rider's current job order to null
|
||||
$rider->setCurrentJobOrder();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ class MQTTClient
|
|||
|
||||
public function sendEvent(JobOrder $job_order, $payload)
|
||||
{
|
||||
error_log('sending mqtt event: ');
|
||||
error_log(print_r($payload, true));
|
||||
//error_log('sending mqtt event: ');
|
||||
//error_log(print_r($payload, true));
|
||||
|
||||
$sessions = $job_order->getCustomer()->getMobileSessions();
|
||||
if (count($sessions) == 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue