fix(captain): evita callback de embedding ao excluir FAQ
Some checks failed
Build and Push to GHCR (multi-arch) / build (linux/amd64, ubuntu-latest) (push) Has been cancelled
Build and Push to GHCR (multi-arch) / build (linux/arm64, ubuntu-22.04-arm) (push) Has been cancelled
Build and Push to GHCR (multi-arch) / merge (push) Has been cancelled

This commit is contained in:
Kilo-Oracle 2026-04-30 16:09:18 +00:00
parent c8574d2d7c
commit e0dcf0f0ea

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) }