chore: Fix response associations for inbox (#7582)

- Fix the bug in inbox associations that crept up in previous PR
This commit is contained in:
Sojan Jose 2023-07-21 20:47:41 +03:00 committed by GitHub
parent 40ec0d109a
commit 56d0b220f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,8 +4,8 @@ module Enterprise::Concerns::Inbox
included do
def self.add_response_related_associations
has_many :response_sources, dependent: :destroy_async
has_many :response_documents, dependent: :destroy_async
has_many :responses, dependent: :destroy_async
has_many :response_documents, through: :response_sources
has_many :responses, through: :response_documents
end
add_response_related_associations if Features::ResponseBotService.new.vector_extension_enabled?