Update app/lib/plugin_initializers/assigned_reminder_exclude_solved.rb
Co-authored-by: Bianca Nenciu <nbianca@users.noreply.github.com>
This commit is contained in:
parent
ba796897ad
commit
2c0aff5a21
|
@ -18,7 +18,7 @@ module DiscourseSolved
|
|||
def apply_plugin_api
|
||||
plugin.register_modifier(:assigns_reminder_assigned_topics_query) do |query|
|
||||
next query if !SiteSetting.ignore_solved_topics_in_assigned_reminder
|
||||
query.where.not(id: DiscourseSolved::Solution.pluck(:topic_id))
|
||||
query.where.not(id: DiscourseSolved::Solution.select(:topic_id))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue