Fix user notification

This commit is contained in:
Djery-Tom 2021-10-28 13:09:41 +01:00
parent cef6d86d0f
commit f0ae44406e
1 changed files with 4 additions and 1 deletions

View File

@ -54,7 +54,10 @@ class NotifyUser
$body = new \stdClass();
$body->user_code = $user->user_code;
$body->message = $event->notification;
$body->data = [];
$data = new \stdClass();
$data->screen = "notificationview";
$data->data = new \stdClass();
$data->data->subscription_id = $data->data->id = $subscription->id;
try {
$body->date = $this->getCurrentTimeByCountryCode($user->network->country->code_country);
} catch (Throwable $t) {