fix: resolved content issue in renamed notification (#35252)

This commit is contained in:
Ahtisham Shahid
2024-08-08 19:10:47 +05:00
committed by GitHub
parent 63f327b682
commit e7dbc4883c

View File

@@ -465,6 +465,8 @@ def get_notification_content(notification_type, context):
'strong': 'strong',
'p': 'p',
}
if notification_type == 'course_update':
notification_type = 'course_updates'
notification_type = NotificationTypeManager().notification_types.get(notification_type, None)
if notification_type:
notification_type_content_template = notification_type.get('content_template', None)