fix(captain): evita callback de embedding ao excluir FAQ
Some checks failed
Some checks failed
This commit is contained in:
parent
c8574d2d7c
commit
e0dcf0f0ea
@ -35,7 +35,7 @@ class Captain::AssistantResponse < ApplicationRecord
|
|||||||
|
|
||||||
before_validation :ensure_account
|
before_validation :ensure_account
|
||||||
before_validation :ensure_status
|
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 :ordered, -> { order(created_at: :desc) }
|
||||||
scope :by_account, ->(account_id) { where(account_id: account_id) }
|
scope :by_account, ->(account_id) { where(account_id: account_id) }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user