FIX: Add table name to remove ambiguous column reference in SQL (#449)
This commit is contained in:
parent
57d350c913
commit
b41c5cc31c
|
@ -75,7 +75,7 @@ module DiscourseAi
|
|||
.public_posts
|
||||
.where("topics.visible")
|
||||
.where(topic_id: candidate_topic_ids, post_number: 1)
|
||||
.order("array_position(ARRAY#{candidate_topic_ids}, topic_id)")
|
||||
.order("array_position(ARRAY#{candidate_topic_ids}, posts.topic_id)")
|
||||
|
||||
query_filter_results = search.apply_filters(semantic_results)
|
||||
|
||||
|
|
Loading…
Reference in New Issue