Skip to content

Commit

Permalink
Fix undefined var in error_query
Browse files Browse the repository at this point in the history
  • Loading branch information
vpellan committed Jun 5, 2024
1 parent 72742ed commit b0c05f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/datadog/appsec/contrib/graphql/gateway/watcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def watch_resolve(gateway = Instrumentation.gateway)
block = GraphQL::Reactive::Resolve.publish(op, gateway_resolve)
end

throw Ext::QUERY_INTERRUPT, error_query if block
throw Ext::QUERY_INTERRUPT, error_query(gateway_resolve) if block

ret, res = stack.call(gateway_resolve.arguments)

Expand All @@ -105,7 +105,7 @@ def watch_resolve(gateway = Instrumentation.gateway)

private

def error_query
def error_query(gateway_resolve)
::GraphQL::Query::Result.new(
query: gateway_resolve.query,
values: {
Expand Down

0 comments on commit b0c05f1

Please sign in to comment.