notification manager

This commit is contained in:
Egor Matveev 2022-03-20 16:18:40 +03:00
parent 0d7f2b9496
commit b2d7a57598

View File

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