notifications API

This commit is contained in:
jain
2023-08-07 11:28:34 +05:30
5 changed files with 109 additions and 23 deletions

View File

@ -70,7 +70,7 @@ class ReadNotification(views.APIView):
if serializer.is_valid():
# save serializer
serializer.save()
return custom_response(SUCCESS_CODE['3037'], response_status=status.HTTP_200_OK)
return custom_response(SUCCESS_CODE['3039'], response_status=status.HTTP_200_OK)
return custom_error_response(serializer.errors, response_status=status.HTTP_400_BAD_REQUEST)
except Exception as e:
return custom_error_response(str(e), response_status=status.HTTP_400_BAD_REQUEST)