DEV: Fix module namespace breaking reloads (#530)

This commit is contained in:
Rafael dos Santos Silva 2024-03-14 15:19:28 -03:00 committed by GitHub
parent fc6c3c81e7
commit b327313115
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -20,7 +20,10 @@ module DiscourseAi
end
@related_topics ||=
SemanticTopicQuery.new(@user).list_semantic_related_topics(topic).topics
::DiscourseAi::Embeddings::SemanticTopicQuery
.new(@user)
.list_semantic_related_topics(topic)
.topics
end
%i[topic_view TopicViewPosts].each do |serializer|