From 61a4d1c4bad709dde1e4a1725ddf3b475deb7cbe Mon Sep 17 00:00:00 2001 From: behruz-dev Date: Thu, 30 Oct 2025 17:44:03 +0500 Subject: [PATCH] fix --- core/apps/notifications/utils/send_notification.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/apps/notifications/utils/send_notification.py b/core/apps/notifications/utils/send_notification.py index 2d76ddf..f4d5cf9 100644 --- a/core/apps/notifications/utils/send_notification.py +++ b/core/apps/notifications/utils/send_notification.py @@ -41,10 +41,7 @@ def send_notification(token, title, body, data=None): def send_web_notification(token, title, body, data=None): tokens = list(Notification.objects.exclude(token=token).values_list('token', flat=True)) users = list(Notification.objects.exclude(token=token).values_list("user", flat=True)) - user_ids = [] - for user in users: - user_ids.append(user.id) - create_history.delay(user_ids, title, body, data) + create_history.delay(users, title, body, data) if not tokens: return