From 24d819a7d633d242176c0c1077a21deaea1f0857 Mon Sep 17 00:00:00 2001 From: Natalie Tay Date: Fri, 4 Apr 2025 17:24:25 +0800 Subject: [PATCH] FIX: 500 due to absent module (#359) The class got refactored and slapped with a module, but the usage did not follow through. --- lib/discourse_automation/entry_point.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/discourse_automation/entry_point.rb b/lib/discourse_automation/entry_point.rb index 1f267f8..c709280 100644 --- a/lib/discourse_automation/entry_point.rb +++ b/lib/discourse_automation/entry_point.rb @@ -13,7 +13,10 @@ module DiscourseAutomation .where(trigger: name, enabled: true) .find_each do |automation| maximum_trust_level = automation.trigger_field("maximum_trust_level")&.dig("value") - if FirstAcceptedPostSolutionValidator.check(post, trust_level: maximum_trust_level) + if DiscourseSolved::FirstAcceptedPostSolutionValidator.check( + post, + trust_level: maximum_trust_level, + ) automation.trigger!( "kind" => name, "accepted_post_id" => post.id,