mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-07-02 03:42:12 +00:00
FIX: 500 due to absent module (#359)
The class got refactored and slapped with a module, but the usage did not follow through.
This commit is contained in:
parent
37003f91ef
commit
24d819a7d6
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user