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(chatwoot): drop ::text cast on conversation uuid in pgimport (#724)
Aldino Kemala1d617ddcb24
diff --git a/src/infrastructure/chatwoot/pgimport/writer.go b/src/infrastructure/chatwoot/pgimport/writer.goindex ee65ca23..14fd658b 100644--- a/src/infrastructure/chatwoot/pgimport/writer.go+++ b/src/infrastructure/chatwoot/pgimport/writer.go@@ -376,7 +376,7 @@ func (i *Importer) findOrCreateConversation(last_activity_at, waiting_since, created_at, updated_at)VALUES($1, $2, $3, $4, $5,- gen_random_uuid()::text,+ gen_random_uuid(),'{}'::jsonb, '{}'::jsonb,$6, $6, $6, now())RETURNING iddiff --git a/src/infrastructure/chatwoot/pgimport/writer_units_test.go b/src/infrastructure/chatwoot/pgimport/writer_units_test.goindex 0af34f3f..ebc8ceec 100644--- a/src/infrastructure/chatwoot/pgimport/writer_units_test.go+++ b/src/infrastructure/chatwoot/pgimport/writer_units_test.go@@ -56,7 +56,7 @@ const insertConversationSQL = `last_activity_at, waiting_since, created_at, updated_at)VALUES($1, $2, $3, $4, $5,- gen_random_uuid()::text,+ gen_random_uuid(),'{}'::jsonb, '{}'::jsonb,$6, $6, $6, now())RETURNING id