mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-15 10:05:21 +00:00
added to user type as per required changes, handled apple signup for existing users
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user