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:
Linca 2024-09-10 14:25:23 +08:00 committed by GitHub
parent ba796897ad
commit 2c0aff5a21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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