notification manager
This commit is contained in:
parent
0d7f2b9496
commit
b2d7a57598
@ -49,7 +49,7 @@ class MessagingSupport(BaseCommand):
|
|||||||
|
|
||||||
def notify(user: User, notification_type: str, text: str):
|
def notify(user: User, notification_type: str, text: str):
|
||||||
send_to_queue("notifications", {
|
send_to_queue("notifications", {
|
||||||
'user_id': user,
|
'user_id': user.id,
|
||||||
'notification_type': notification_type,
|
'notification_type': notification_type,
|
||||||
'text': text,
|
'text': text,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user