notification manager

This commit is contained in:
Egor Matveev 2022-03-20 16:24:28 +03:00
parent b2d7a57598
commit 350cf71781

View File

@ -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,
}) })