This commit is contained in:
behruz-dev
2025-10-28 17:03:04 +05:00
parent fe543fad5a
commit 9efc8aef40
3 changed files with 11 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ from core.apps.notifications.models import Notification
from core.apps.notifications.utils.send_notification import send_notification
def notify_user(user, title, body):
def notify_user(user, title, body, data):
tokens = Notification.objects.filter(user=user)
for token in tokens:
send_notification(token.token, title, body)
send_notification(token.token, title, body, data)