There was an error while loading. Please reload this page.
1 parent ced9b30 commit 45799f7Copy full SHA for 45799f7
1 file changed
lib/docs/query.rb
@@ -49,16 +49,10 @@ def list
49
end
50
51
52
- if @filters[:solved].present?
53
- results =
54
- results.where(
55
- "topics.id IN (
56
- SELECT topic_id from discourse_solved_solved_topic
57
- )",
58
- )
59
- if @filters[:solved].present? && defined?(DiscourseSolved::SolvedTopic)
60
- results = results.joins(:solved)
61
- end
+ if @filters[:solved].present? && defined?(DiscourseSolved::SolvedTopic)
+ results = results.joins(:solved)
+ end
+
62
63
# filter results by search term
64
if @filters[:search_term].present?
0 commit comments