mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-06 17:30:20 +00:00
FIX: Make sure DiscoursePrometheus is installed when collecting metrics (#1107)
This commit is contained in:
parent
cf86d274a0
commit
7ad922331b
@ -4,6 +4,7 @@ module DiscourseAi
|
||||
module AiModeration
|
||||
class SpamMetric
|
||||
def self.update(new_status, reviewable)
|
||||
return if !defined?(::DiscoursePrometheus)
|
||||
ai_spam_log = AiSpamLog.find_by(reviewable:)
|
||||
return if ai_spam_log.nil?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user