added notification type in push data

This commit is contained in:
abutalib-kiwi
2023-09-26 17:24:40 +05:30
parent ea02d7f5bb
commit 32c35f8649
2 changed files with 21 additions and 1 deletions

View File

@ -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"])