Skip to content

Commit aac99e1

Browse files
committed
fix: use full UUID for tenant name to avoid collisions
1 parent b76e41e commit aac99e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/middleware/tenant.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func Tenant(cfg config.MultiTenant, persister persistence.Persister) echo.Middle
5757
now := time.Now().UTC()
5858
tenant = &models.Tenant{
5959
ID: *tenantID,
60-
Name: fmt.Sprintf("Tenant-%s", tenantID.String()[:8]), // Use first 8 chars of UUID as name
60+
Name: fmt.Sprintf("Tenant-%s", tenantID.String()), // Use full UUID as name to avoid collisions
6161
Slug: tenantID.String(), // Use full UUID as slug for uniqueness
6262
Enabled: true,
6363
CreatedAt: now,

0 commit comments

Comments
 (0)