fix: Rename channel_list to channels to avoid "no implicit conversion of nil" exception (#7700)

This commit is contained in:
Pranav Raj S
2023-08-09 16:11:51 -07:00
committed by GitHub
parent c1c3a62412
commit 04287a0924

View File

@@ -28,7 +28,7 @@ class Integrations::Slack::ChannelBuilder
channel_list = conversations_list.channels
while conversations_list.response_metadata.next_cursor.present?
conversations_list = slack_client.conversations_list(cursor: conversations_list.response_metadata.next_cursor)
channel_list.concat(conversations_list.channel_list)
channel_list.concat(conversations_list.channels)
end
channel_list
end