Skip to content

Commit c272e50

Browse files
committed
fix other get_field call
1 parent 2bd2ba5 commit c272e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/graphql/subscriptions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def trigger(event_name, args, object, scope: nil)
4343
event_name = event_name.to_s
4444

4545
# Try with the verbatim input first:
46-
field = @schema.get_field("Subscription", event_name)
46+
field = @schema.get_field(@schema.subscription, event_name)
4747

4848
if field.nil?
4949
# And if it wasn't found, normalize it:

0 commit comments

Comments
 (0)