Skip to content

Commit

Permalink
Revert request with app in subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ruscoder committed Aug 12, 2023
1 parent 57098dc commit 0fcbf02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aidbox_python_sdk/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ async def subscription(request, data):
if not handler:
logger.error("Subscription handler `{}` was not found".format(data["handler"]))
raise web.HTTPNotFound()
data["request"]["app"] = request.app
result = handler(data["event"], data["request"])
result = handler(data["event"], request)
if asyncio.iscoroutine(result):
asyncio.get_event_loop().create_task(result)
return web.json_response({})
Expand Down

0 comments on commit 0fcbf02

Please sign in to comment.