summaryrefslogtreecommitdiff
path: root/app/controllers/graphql_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/graphql_controller.rb')
-rw-r--r--app/controllers/graphql_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/graphql_controller.rb b/app/controllers/graphql_controller.rb
index 3ef03bc9622..8d8cb44e07e 100644
--- a/app/controllers/graphql_controller.rb
+++ b/app/controllers/graphql_controller.rb
@@ -12,7 +12,7 @@ class GraphqlController < ApplicationController
query = params[:query]
operation_name = params[:operationName]
context = {
- current_user: current_user
+ current_user: current_user,
}
result = GitlabSchema.execute(query, variables: variables, context: context, operation_name: operation_name)
render json: result
@@ -37,7 +37,7 @@ class GraphqlController < ApplicationController
end
def render_error(message, status: 500)
- error = { errors: [message: message] }
+ error = {errors: [message: message]}
render json: error, status: status
end