Add webhook prod check script and update handoff
This commit is contained in:
@ -2,6 +2,22 @@
|
||||
|
||||
Snapshot tanggal: `2026-05-22`
|
||||
|
||||
Perubahan terbaru (sesi ini, 23 Mei 2026):
|
||||
|
||||
- Menambahkan script pemeriksaan webhook production: `scripts/check-webhook-prod.sh`
|
||||
- Otomatis cek `webhook_events`, `jobs` queue `webhooks`, summary status, korelasi inbound vs `conversation_messages`, dan sample `contacts`.
|
||||
- Script otomatis handle koneksi via `psql` lokal atau fallback ke container Docker PostgreSQL.
|
||||
- Menyetel key React pada activity list di `frontend/src/components/conversations-inbox.tsx` agar tidak duplicate:
|
||||
- dari `key={item.title}-{item.meta}`
|
||||
- menjadi `key={item.title}-{item.meta}-{index}`.
|
||||
- Perbaikan kecil controller DI pada `backend/src/auth/auth.controller.ts`:
|
||||
- constructor injection diringkas via parameter property + `@Inject(AuthService)` agar konsisten style.
|
||||
|
||||
Catatan diagnosa dari output terakhir:
|
||||
- Webhook `POST /api/webhooks/whatsapp` sudah masuk ke DB dan diproses (`processing_status=processed`, `jobs` `webhooks` berstatus `processed`, tidak ada `queued/failed`).
|
||||
- Event `message.inbound` juga sudah terhubung ke `conversation_messages` dan memiliki contact, sehingga data percakapan sudah tersimpan.
|
||||
- Jika UI belum nampak, kemungkinan di sisi fetch/render dashboard perlu refresh/target contact yang sesuai, bukan di jalur webhook.
|
||||
|
||||
Dokumen ini adalah ringkasan kondisi terakhir BizOne Portal supaya sesi Codex berikutnya bisa lanjut tanpa bongkar ulang dari nol.
|
||||
|
||||
## Ringkasan Cepat
|
||||
|
||||
Reference in New Issue
Block a user