notification manager
This commit is contained in:
parent
b2d7a57598
commit
350cf71781
@ -50,6 +50,6 @@ 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.id,
|
'user_id': user.id,
|
||||||
'notification_type': notification_type,
|
'type': notification_type,
|
||||||
'text': text,
|
'text': text,
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user