[FIX] odex_web_app: ifix fcm api body

This commit is contained in:
Samir Ladoui 2024-07-07 09:19:54 +01:00
parent 5c4354722c
commit 1722e938f7
1 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,10 @@ class HrEmployee(models.Model):
body = json.dumps({
"to": self.fcm_token_web,
"direct_boot_ok": True,
"notification": notification
"notification": {
"title": "Message",
"body": notification
}
})
try:
respons = requests.post(url=url, data=body, headers=header)