mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-15 10:05:21 +00:00
added notification type in push data
This commit is contained in:
@ -58,7 +58,8 @@ class NotificationViewSet(viewsets.GenericViewSet):
|
||||
"""
|
||||
notify_task_expiry()
|
||||
notify_top_junior()
|
||||
send_notification(TEST_NOTIFICATION, None, None, request.auth.payload['user_id'],
|
||||
notification_type = request.query_params.get('type', TEST_NOTIFICATION)
|
||||
send_notification(int(notification_type), None, None, request.auth.payload['user_id'],
|
||||
{})
|
||||
return custom_response(SUCCESS_CODE["3000"])
|
||||
|
||||
|
Reference in New Issue
Block a user