added to user type as per required changes, handled apple signup for existing users

This commit is contained in:
abutalib-kiwi
2023-10-06 17:29:41 +05:30
parent 13665f4c9a
commit a1f9f93654
6 changed files with 10 additions and 8 deletions

View File

@ -92,6 +92,7 @@ def get_notification_data(notification_type, from_user_id, from_user_type, to_us
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()