fix: Add a .present? check for sentiment file path to avoid false positives (#8401)
This commit is contained in:
parent
1904ec7df4
commit
90649e72bb
@ -1,5 +1,5 @@
|
||||
module Enterprise::Message
|
||||
def update_message_sentiments
|
||||
::Enterprise::SentimentAnalysisJob.perform_later(self) if ENV.fetch('SENTIMENT_FILE_PATH', nil)
|
||||
::Enterprise::SentimentAnalysisJob.perform_later(self) if ENV.fetch('SENTIMENT_FILE_PATH', nil).present?
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user