Fix rider assign MQTT event for new rider app #783
This commit is contained in:
parent
a2cd86b48c
commit
a4b883b7ea
2 changed files with 2 additions and 1 deletions
|
|
@ -2021,6 +2021,7 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
|||
|
||||
// NOTE: for resq2 app
|
||||
$mclientv2->sendEvent($obj, $payload);
|
||||
$mclientv2->sendRiderEvent($obj, $payload);
|
||||
$fcmclient->sendJoEvent($obj, "jo_fcm_title_driver_assigned", "jo_fcm_body_driver_assigned");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -89,6 +89,6 @@ class MQTTClient
|
|||
*/
|
||||
|
||||
// NOTE: this is for the new rider app
|
||||
$this->publish('rider/' . $rider->getID(), json_encode($payload));
|
||||
$this->publish('rider/' . $rider->getID() . '/delivery', json_encode($payload));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue