From 2c0aff5a21a91cfc79a9618f22f9ef760bf861f6 Mon Sep 17 00:00:00 2001 From: Linca <41134017+Lhcfl@users.noreply.github.com> Date: Tue, 10 Sep 2024 14:25:23 +0800 Subject: [PATCH] Update app/lib/plugin_initializers/assigned_reminder_exclude_solved.rb Co-authored-by: Bianca Nenciu --- app/lib/plugin_initializers/assigned_reminder_exclude_solved.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/plugin_initializers/assigned_reminder_exclude_solved.rb b/app/lib/plugin_initializers/assigned_reminder_exclude_solved.rb index 611a376..63a513f 100644 --- a/app/lib/plugin_initializers/assigned_reminder_exclude_solved.rb +++ b/app/lib/plugin_initializers/assigned_reminder_exclude_solved.rb @@ -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