notification modification added more payload

This commit is contained in:
abutalib-kiwi
2023-08-14 16:03:36 +05:30
parent 08dc9f8538
commit e46d649fdc
5 changed files with 50 additions and 15 deletions

View File

@ -56,7 +56,8 @@ class NotificationViewSet(viewsets.GenericViewSet):
to send test notification
:return:
"""
send_notification.delay(TEST_NOTIFICATION, None, request.auth.payload['user_id'], {})
send_notification(TEST_NOTIFICATION, None, request.auth.payload['user_id'],
{'task_id': None})
return custom_response(SUCCESS_CODE["3000"])
@action(methods=['get'], detail=False, url_path='list', url_name='list',