chore: Fix response associations for inbox (#7582)
- Fix the bug in inbox associations that crept up in previous PR
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user