Skip to content

Commit

Permalink
Bugfix #14
Browse files Browse the repository at this point in the history
  • Loading branch information
heming-langrenn committed Jul 31, 2023
1 parent bb8cbd1 commit b44d240
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions photo_service/views/video_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ async def post(self) -> Response:
raise HTTPBadRequest(
reason="Mandatory param is missing - eventId/queueName."
) from e

response = await AzureServiceBusService.receive_messages(
response_list = await AzureServiceBusService.receive_messages(
db, event_id, queue_name
)
# convert response from list to json
response = json.dumps(response_list)

return Response(status=201, body=response, content_type="application/json")
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b44d240

Please sign in to comment.