Skip to content

Commit 24d819a

Browse files
authored
FIX: 500 due to absent module (#359)
The class got refactored and slapped with a module, but the usage did not follow through.
1 parent 37003f9 commit 24d819a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/discourse_automation/entry_point.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ def self.inject(plugin)
1313
.where(trigger: name, enabled: true)
1414
.find_each do |automation|
1515
maximum_trust_level = automation.trigger_field("maximum_trust_level")&.dig("value")
16-
if FirstAcceptedPostSolutionValidator.check(post, trust_level: maximum_trust_level)
16+
if DiscourseSolved::FirstAcceptedPostSolutionValidator.check(
17+
post,
18+
trust_level: maximum_trust_level,
19+
)
1720
automation.trigger!(
1821
"kind" => name,
1922
"accepted_post_id" => post.id,

0 commit comments

Comments
 (0)