fix
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user