summaryrefslogtreecommitdiff
path: root/lib/gitlab/chat/responder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/chat/responder.rb')
-rw-r--r--lib/gitlab/chat/responder.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/chat/responder.rb b/lib/gitlab/chat/responder.rb
index 6267fbc20e2..53a625e9d43 100644
--- a/lib/gitlab/chat/responder.rb
+++ b/lib/gitlab/chat/responder.rb
@@ -11,9 +11,9 @@ module Gitlab
#
# build - A `Ci::Build` that executed a chat command.
def self.responder_for(build)
- service = build.pipeline.chat_data&.chat_name&.service
+ integration = build.pipeline.chat_data&.chat_name&.integration
- if (responder = service.try(:chat_responder))
+ if (responder = integration.try(:chat_responder))
responder.new(build)
end
end