GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.
Go botgogolanggolang-whatsappgolang-whatsapp-apirestrest-apiwhatsappwhatsapp-apiwhatsapp-api-gowhatsapp-multi-devicewhatsapp-web-multi-device
fix: save device webhook config against the generated device ID (#785)
Alkado heneliko1ada60b456d1
diff --git a/src/usecase/device.go b/src/usecase/device.goindex 23277ae8..e0e8bd70 100644--- a/src/usecase/device.go+++ b/src/usecase/device.go@@ -60,6 +60,10 @@ func (s *serviceDevice) AddDevice(ctx context.Context, deviceID string, webhookreturn nil, err}+ // CreateDevice generates an ID when none was requested; the webhook config+ // below must be saved against the actual ID, not the (possibly empty) request value.+ deviceID = inst.ID()+// Apply the device-specific webhook configuration if provided. Failures are// surfaced instead of logged away: the caller was promised the webhook config,// so a silent partial success would leave the API reporting a webhook that was