DEV: fix build (#1168)

This commit is contained in:
Sam 2025-03-06 11:19:14 +11:00 committed by GitHub
parent e255c7a8f0
commit 453bb4821f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,8 +18,7 @@ module DiscourseAi
ClassificationResult.has_sentiment_classification? && SiteSetting.ai_sentiment_enabled ClassificationResult.has_sentiment_classification? && SiteSetting.ai_sentiment_enabled
end end
if Rails.env.test? || # TODO we need new interfaces to conditionally register depending on site in the multisite
ClassificationResult.has_sentiment_classification? && SiteSetting.ai_sentiment_enabled
EmotionFilterOrder.register!(plugin) EmotionFilterOrder.register!(plugin)
EmotionDashboardReport.register!(plugin) EmotionDashboardReport.register!(plugin)
SentimentDashboardReport.register!(plugin) SentimentDashboardReport.register!(plugin)
@ -28,4 +27,3 @@ module DiscourseAi
end end
end end
end end
end