Skip to content

Commit 5004c0a

Browse files
committed
Fix reference to outdated topic custom field accepted_answer_post_id
1 parent ddbddac commit 5004c0a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/docs/query.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,7 @@ def list
5353
results =
5454
results.where(
5555
"topics.id IN (
56-
SELECT tc.topic_id
57-
FROM topic_custom_fields tc
58-
WHERE tc.name = 'accepted_answer_post_id' AND
59-
tc.value IS NOT NULL
56+
SELECT topic_id from discourse_solved_solved_topic
6057
)",
6158
)
6259
end

0 commit comments

Comments
 (0)