From 930989e5e6dbd2c5253ec3d05652e55c43379725 Mon Sep 17 00:00:00 2001 From: Muhammad Adeel Tajamul <77053848+muhammadadeeltajamul@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:57:27 +0500 Subject: [PATCH] fix: fixed notification generated event for grouped notifications (#36048) --- openedx/core/djangoapps/notifications/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/notifications/tasks.py b/openedx/core/djangoapps/notifications/tasks.py index 75ad3f1ecd0b..ddd690cf996b 100644 --- a/openedx/core/djangoapps/notifications/tasks.py +++ b/openedx/core/djangoapps/notifications/tasks.py @@ -187,7 +187,7 @@ def send_notifications(user_ids, course_key: str, app_name, notification_type, c group_user_notifications(new_notification, existing_notifications[user_id]) else: notifications.append(new_notification) - generated_notification_audience.append(user_id) + generated_notification_audience.append(user_id) # send notification to users but use bulk_create notification_objects = Notification.objects.bulk_create(notifications)