Commit 63a90cb8 authored by Gladys Forte's avatar Gladys Forte

Merge pull request #222 in RMS/api-main-service from gladys-dev2 to RMSv2

* commit '6d298a90':
  notif
parents 1a30ffd5 6d298a90
......@@ -29,7 +29,7 @@ class NotificationsViewset(meviewsets.ModelViewSet):
pagination_class = CustomPagination
def list(self, request, *args, **kwargs):
# try:
try:
req = self.request
account_no = req.query_params.get('account_no')
app = req.query_params.get('app')
......@@ -77,12 +77,12 @@ class NotificationsViewset(meviewsets.ModelViewSet):
return self.get_paginated_response(message)
# except Exception as e:
# message = status_message_response(
# 500, 'failed',
# 'Request was not able to process' + str(e), [])
# return Response(message,
# status=status.HTTP_500_INTERNAL_SERVER_ERROR)
except Exception as e:
message = status_message_response(
500, 'failed',
'Request was not able to process' + str(e), [])
return Response(message,
status=status.HTTP_500_INTERNAL_SERVER_ERROR)
# comment
@action(methods=["PATCH"], detail=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment