mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-03-06 17:59:29 +00:00
DEV: Replace #pluck_first monkey patch with native #pick (#166)
This commit is contained in:
parent
9647c7afc0
commit
481dc797a8
@ -199,7 +199,7 @@ module DiscourseChatIntegration::Provider::SlackProvider
|
||||
|
||||
def self.get_slack_thread_ts(topic, channel)
|
||||
field = TopicCustomField.where(topic: topic, name: "#{THREAD_CUSTOM_FIELD_PREFIX}#{channel}")
|
||||
field.pluck_first(:value) || topic.custom_fields[THREAD_LEGACY]
|
||||
field.pick(:value) || topic.custom_fields[THREAD_LEGACY]
|
||||
end
|
||||
|
||||
def self.set_slack_thread_ts(topic, channel, value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user