fix(captain): evita callback de embedding ao excluir FAQ (#13)

Co-authored-by: Kilo-Oracle <kilo-oracle@kilo-stack.local>
This commit is contained in:
Rodribm10 2026-04-30 13:14:48 -03:00 committed by GitHub
parent c8574d2d7c
commit f8709ab7a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,7 @@ class Captain::AssistantResponse < ApplicationRecord
before_validation :ensure_account
before_validation :ensure_status
after_commit :update_response_embedding
after_commit :update_response_embedding, on: %i[create update]
scope :ordered, -> { order(created_at: :desc) }
scope :by_account, ->(account_id) { where(account_id: account_id) }