diff --git a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php index 49fec3bc..f414ead4 100644 --- a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php +++ b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php @@ -1029,6 +1029,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface $jo->requeue(); + // set rider to null $jo->clearRider(); // add event log @@ -1053,8 +1054,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface ]; $this->mclient->sendEvent($jo, $payload); - // need to send another mqtt event saying rider is available - // to change icon on dashboard + // send available event to change rider icon status $channel = 'rider/' . $rider->getID() . '/status'; $rider_status = 'available';