From d1e2c5ef1b56b9028cb6c6f449a76d95e0efc6a9 Mon Sep 17 00:00:00 2001 From: Tauanny Furlanetto Date: Fri, 8 Sep 2023 13:11:29 -0300 Subject: [PATCH] fix: coroutine error --- barterdude/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barterdude/__init__.py b/barterdude/__init__.py index 032e87e..694f987 100644 --- a/barterdude/__init__.py +++ b/barterdude/__init__.py @@ -45,7 +45,7 @@ def add_callback_endpoint( mock_dependencies: Iterable[Tuple[Any, str]] = None, ): async def hook_to_callback(req:web.Request): - return self._call_callback_endpoint(req, hook, mock_dependencies) + return await self._call_callback_endpoint(req, hook, mock_dependencies) self.add_endpoint( routes=routes,