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,