to user type added

This commit is contained in:
abutalib-kiwi
2023-10-06 18:10:56 +05:30
parent a1f9f93654
commit d1927b24ee

View File

@ -90,9 +90,12 @@ def get_notification_data(notification_type, from_user_id, from_user_type, to_us
notification_data['body'] = notification_data['body'].format(from_user=from_user_name,
task_name=task_name, points=points)
push_data['to_user_type'] = GUARDIAN if from_user_type == JUNIOR else JUNIOR
notification_data['to_user_type'] = GUARDIAN if from_user_type == JUNIOR else JUNIOR
notification_data['from_user'] = from_user_name
notification_data['from_user_image'] = from_user_image
notification_data['to_user_type'] = GUARDIAN if from_user_type == JUNIOR else JUNIOR
notification_data.update(extra_data)
to_user = User.objects.filter(id=to_user_id).first()