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

@ -59,7 +59,8 @@ class NotificationViewSet(viewsets.GenericViewSet):
notify_task_expiry()
notify_top_junior()
notification_type = request.query_params.get('type', TEST_NOTIFICATION)
send_notification(int(notification_type), None, None, request.auth.payload['user_id'],
from_user_type = request.query_params.get('from_user_type')
send_notification(int(notification_type), None, from_user_type, request.auth.payload['user_id'],
{})
if notification_type and request.query_params.get('clear_all'):
Notification.objects.filter(notification_type=notification_type).delete()