Skip to content

Commit

Permalink
Fix NameError for subscriptions with customType (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
LdwgWffnschmdt authored Dec 12, 2022
1 parent e21a818 commit a73ed43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apischema/graphql/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,11 +859,13 @@ def operation_resolver(operation: Union[Callable, Op], op_class: Type[Op]) -> Re
op = operation.function
if iscoroutinefunction(op):

@wraps(op)
async def wrapper(_, *args, **kwargs):
return await op(*args, **kwargs)

else:

@wraps(op)
def wrapper(_, *args, **kwargs):
return op(*args, **kwargs)

Expand Down

0 comments on commit a73ed43

Please sign in to comment.