From b2d7a575989707fa2ffb06b8286ac150d20708b8 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Sun, 20 Mar 2022 16:18:40 +0300 Subject: [PATCH] notification manager --- SprintLib/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SprintLib/queue.py b/SprintLib/queue.py index 79cbdf2..2766478 100644 --- a/SprintLib/queue.py +++ b/SprintLib/queue.py @@ -49,7 +49,7 @@ class MessagingSupport(BaseCommand): def notify(user: User, notification_type: str, text: str): send_to_queue("notifications", { - 'user_id': user, + 'user_id': user.id, 'notification_type': notification_type, 'text': text, })