Skip to content

Commit 0fcbf02

Browse files
authored
Revert request with app in subscriptions
1 parent 57098dc commit 0fcbf02

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

aidbox_python_sdk/handlers.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ async def subscription(request, data):
1717
if not handler:
1818
logger.error("Subscription handler `{}` was not found".format(data["handler"]))
1919
raise web.HTTPNotFound()
20-
data["request"]["app"] = request.app
21-
result = handler(data["event"], data["request"])
20+
result = handler(data["event"], request)
2221
if asyncio.iscoroutine(result):
2322
asyncio.get_event_loop().create_task(result)
2423
return web.json_response({})

0 commit comments

Comments
 (0)