Resolve "Migrate Rider API" #1541

Merged
korina.cordero merged 39 commits from 617-migrate-rider-api into master-fix 2021-08-24 08:59:05 +00:00
Showing only changes of commit b433722764 - Show all commits

View file

@ -72,6 +72,8 @@ class MQTTClient
if ($rider == null)
return;
/*
// NOTE: this is for the old rider app
// check if rider has sessions
$sessions = $rider->getSessions();
if (count($sessions) == 0)
@ -84,5 +86,9 @@ class MQTTClient
$channel = self::RIDER_PREFIX . $sess_id;
$this->publish($channel, json_encode($payload));
}
*/
// NOTE: this is for the new rider app
$this->publish('rider/' . $rider->getID(), json_encode($payload));
}
}