fix: fixed notification generated event for grouped notifications (#36048)

This commit is contained in:
Muhammad Adeel Tajamul
2024-12-19 16:57:27 +05:00
committed by GitHub
parent 54250632d8
commit 930989e5e6

View File

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