We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b76e41e commit aac99e1Copy full SHA for aac99e1
1 file changed
backend/middleware/tenant.go
@@ -57,7 +57,7 @@ func Tenant(cfg config.MultiTenant, persister persistence.Persister) echo.Middle
57
now := time.Now().UTC()
58
tenant = &models.Tenant{
59
ID: *tenantID,
60
- Name: fmt.Sprintf("Tenant-%s", tenantID.String()[:8]), // Use first 8 chars of UUID as name
+ Name: fmt.Sprintf("Tenant-%s", tenantID.String()), // Use full UUID as name to avoid collisions
61
Slug: tenantID.String(), // Use full UUID as slug for uniqueness
62
Enabled: true,
63
CreatedAt: now,
0 commit comments