feat(webhook): persist incoming provider messages

This commit is contained in:
2026-06-04 23:54:07 +08:00
parent b3865f9084
commit 5eb726b124
14 changed files with 535 additions and 84 deletions
+1 -1
View File
@@ -415,7 +415,7 @@ func Bootstrap(env string) (*App, error) {
// Create WhatsApp webhook handler (Gin HTTP handler for WA webhook endpoints)
waWebhook := whatsappchannel.NewWebhookHandler(waProvider)
whatsappWebhookHandler := webhook.NewWhatsAppWebhookHandler(waProvider, waWebhook)
whatsappWebhookHandler := webhook.NewWhatsAppWebhookHandler(waProvider, waWebhook, db)
// Step 8d: Wire TikTok channel provider (Business API)
// TikTok requires service/repo/pipeline deps (like WhatsApp), so wire here in bootstrap.