Remove debug logs. Update rider's current job order when JO is requeued. #630

This commit is contained in:
Korina Cordero 2021-10-22 06:59:55 +00:00
parent 6fe63050c6
commit 9f5493c125
2 changed files with 6 additions and 3 deletions

View file

@ -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();
}
}

View file

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