From 3f38a8c8c67524e80e463aee27aa7e147d1ddef8 Mon Sep 17 00:00:00 2001 From: Jefferson Rodrigues Date: Thu, 28 May 2026 13:57:05 -0300 Subject: [PATCH] =?UTF-8?q?fix(crm):=20align=20tenant-manager=20module=20n?= =?UTF-8?q?ame=20with=20provisioning=20(crm=20=E2=86=92=20crm-api)=20:bug:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The CRM service registers with tenant-manager using moduleName "crm" but tenant databases are provisioned under module "crm-api", causing "no MongoDB config for tenant ... module crm" errors at runtime in multi-tenant mode. --- components/crm/internal/bootstrap/config.tenant.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/crm/internal/bootstrap/config.tenant.go b/components/crm/internal/bootstrap/config.tenant.go index 359f6a3a4..85196677f 100644 --- a/components/crm/internal/bootstrap/config.tenant.go +++ b/components/crm/internal/bootstrap/config.tenant.go @@ -26,7 +26,7 @@ import ( "go.opentelemetry.io/otel/attribute" ) -const moduleName = "crm" +const moduleName = "crm-api" // initTenantMiddleware creates the tenant middleware for multi-tenant mode. // Returns (nil, nil, nil) when multi-tenant is disabled or the URL is not configured.