Skip to content

Commit

Permalink
Update group.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sudheshna-donthineni authored Dec 14, 2023
1 parent d913269 commit 145d933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/router/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ def get_group_data(request: Request):
}
"""
query_params = helpers.validate_and_build_query_params(
request, mapping.GROUP_QUERY_PARAMS
request.query_params, mapping.GROUP_QUERY_PARAMS
)
response = requests.get(
routes.group_type_db_url, params=query_params, headers=db_request_token()
)
if helpers.is_response_valid(response, "Group API could not fetch the data!"):
return helpers.is_response_empty(
response.json(), False, "Group record does not exist!"
response.json()[0], False, "Group record does not exist!"
)


Expand Down

0 comments on commit 145d933

Please sign in to comment.