Skip to content

Commit f95b10c

Browse files
committed
Use Promise.sync in the mutation execution strategy as well
1 parent 19047c9 commit f95b10c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/graphql/batch/mutation_execution_strategy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class FieldResolution < GraphQL::Batch::ExecutionStrategy::FieldResolution
44
def get_finished_value(raw_value)
55
return super if execution_context.strategy.disable_batching
66

7-
raw_value = GraphQL::Batch::Promise.resolve(raw_value).sync
7+
raw_value = Promise.sync(raw_value)
88

99
execution_context.strategy.disable_batching = true
1010
begin

0 commit comments

Comments
 (0)