iachat/lib/tasks
Rodribm10 c5cd15665e feat(captain): provisionamento automático de Captain::Unit em reserva_hotel.unidades
Hook after_commit on:create no Captain::Unit dispara
ProvisionUnitInSupabaseJob, que upserta a unit em reserva_hotel.unidades
via Supabase REST (UNIQUE on tenant_id+chatwoot_unit_id) e grava IDs no
Captain::Unit (supabase_unit_id, supabase_tenant_id, supabase_marca_id).

Sem isso, criar nova unidade no painel Pix não habilitava roleta — a row
no Supabase ficava ausente e OfferService caía em "tenant não resolvido".

Inclui rake captain:reprovision_unit_in_supabase[id] + provision_all
pra reconciliação manual e migration retroativa.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 00:21:20 -03:00
..
dev feat: Add development variant toggle rake task (#11696) 2025-06-10 09:47:59 -04:00
ops feat: add cron job to remove orphan conversations (#13335) 2026-01-28 19:25:20 +05:30
.keep Initial Commit 2019-08-14 15:18:44 +05:30
apply_sla.rake fix: Prevent SLA deletion timeouts by moving to async job (#12944) 2025-12-10 12:28:47 +05:30
asset_clean.rake chore: Upgrade Tailwind CSS to 3.3.2 (#7380) 2023-06-26 11:27:16 -07:00
auto_annotate_models.rake fix: annotaterb (#173) 2025-12-30 15:18:43 -03:00
branding.rake feat: custom branding (#68) 2025-06-12 22:11:19 -03:00
build.rake feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
bulk_conversations.rake fix: Prevent SLA deletion timeouts by moving to async job (#12944) 2025-12-10 12:28:47 +05:30
captain_ceo_digest.rake feat(captain): semantic memory fixes + roleta + reclamações + analytics 2026-04-21 15:36:25 -03:00
captain_chat.rake feat(ee): Captain custom http tools (#12584) 2025-10-06 07:53:15 -07:00
captain_codex.rake feat(captain): Codex OAuth auth module + proxy controller 2026-04-22 15:07:01 -03:00
captain_prompts.rake feat(captain): tabelas de preço corrigidas + sync automático em deploy 2026-04-25 10:31:55 -03:00
captain_reserva.rake feat(captain): provisionamento automático de Captain::Unit em reserva_hotel.unidades 2026-05-01 00:21:20 -03:00
clone_inbox.rake feat: rake task to copy conversations from one inbox to another (#84) 2025-07-27 13:39:54 -03:00
companies.rake Chore/merge upstream 4.8.0 (#150) 2025-11-19 16:25:58 -03:00
db_enhancements.rake feat(captain): tabelas de preço corrigidas + sync automático em deploy 2026-04-25 10:31:55 -03:00
download_report.rake feat: add report download task (#13250) 2026-01-19 18:31:52 +05:30
generate_test_data.rake chore: Generate test data for bulk insertion (#11229) 2025-05-06 11:13:11 +05:30
instance_id.rake feat: Report cwctl events to hub (#8009) 2023-10-10 09:16:03 +05:30
ip_lookup.rake fix: ip-lookup database lazy loading for all environments (#8052) 2024-10-22 23:18:30 -07:00
mfa.rake fix: Session controller to not generate auth tokens before mfa verification (#12487) 2025-09-23 19:13:47 +05:30
rebuild_bot_resolved.rake feat(reports): filtro por inbox no Relatório do Bot 2026-04-26 11:47:46 -03:00
search_test_data.rake feat: Advanced Search Backend (#12917) 2026-01-07 15:30:49 +05:30
seed_reports_data.rake feat: label reports overview (#11194) 2025-06-11 14:35:46 +05:30
sidekiq_tasks.rake feat: Add rake task to clear ActionCable jobs (#9307) 2024-04-30 08:03:40 -07:00
swagger.rake feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11533) 2025-05-22 17:57:12 +07:00