Skip to content

Commit

Permalink
fix: ExecutionInput locale is null
Browse files Browse the repository at this point in the history
  • Loading branch information
pipinet authored and jmartisk committed Dec 18, 2023
1 parent 92529ab commit df2ce9a
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public ExecutionService(GraphQLSchema graphQLSchema, Schema schema) {
}

public ExecutionService(GraphQLSchema graphQLSchema, Schema schema, ExecutionStrategy queryExecutionStrategy,
ExecutionStrategy mutationExecutionStrategy) {
ExecutionStrategy mutationExecutionStrategy) {

this.graphQLSchema = graphQLSchema;
this.schema = schema;
Expand Down Expand Up @@ -222,9 +222,9 @@ private static void sendError(String errorMessage, ExecutionResponseWriter write
}

private void writeAsync(GraphQL graphQL,
ExecutionInput executionInput,
SmallRyeContext smallRyeContext,
ExecutionResponseWriter writer) {
ExecutionInput executionInput,
SmallRyeContext smallRyeContext,
ExecutionResponseWriter writer) {

Uni.createFrom().completionStage(() -> graphQL.executeAsync(executionInput))

Expand All @@ -242,9 +242,9 @@ private void writeAsync(GraphQL graphQL,
}

private void writeSync(GraphQL g,
ExecutionInput executionInput,
SmallRyeContext smallRyeContext,
ExecutionResponseWriter writer) {
ExecutionInput executionInput,
SmallRyeContext smallRyeContext,
ExecutionResponseWriter writer) {
try {
ExecutionResult executionResult = g.execute(executionInput);
notifyAndWrite(smallRyeContext, executionResult, writer);
Expand All @@ -254,8 +254,8 @@ private void writeSync(GraphQL g,
}

private void notifyAndWrite(SmallRyeContext smallRyeContext,
ExecutionResult executionResult,
ExecutionResponseWriter writer) {
ExecutionResult executionResult,
ExecutionResponseWriter writer) {
smallRyeContext.setExecutionResult(executionResult);
// Notify after
eventEmitter.fireAfterExecute(smallRyeContext);
Expand Down

0 comments on commit df2ce9a

Please sign in to comment.