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:
parent
c8574d2d7c
commit
f8709ab7a5
@ -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) }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user