Skip to content

Commit

Permalink
Update notification event and type
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoMoreta committed Mar 19, 2024
1 parent a03e797 commit 6eb67d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helpers/fcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def broadcast_notification(node_shortname=None, data=None, event=NotificationEve
logger.info("Sending FCM broadcast...")
try:
data = data or {}
data["event"] = str(event.prefix)
data["event"] = "notification"
data["type"] = str(event.prefix)

if not body and not title:
silent = True
Expand Down

0 comments on commit 6eb67d2

Please sign in to comment.