Skip to content

Commit

Permalink
fix: callback hook should be async
Browse files Browse the repository at this point in the history
  • Loading branch information
TauannyFurlanetto committed Sep 8, 2023
1 parent 8728957 commit eaf872d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion barterdude/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def add_callback_endpoint(
hook: Callable,
mock_dependencies: Iterable[Tuple[Any, str]] = None,
):
def hook_to_callback(req):
async def hook_to_callback(req):
return self._call_callback_endpoint(req, hook, mock_dependencies)

self.add_endpoint(
Expand Down

0 comments on commit eaf872d

Please sign in to comment.