The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix(auth): handle availableWorkspacesCount correctly when listing wor… (#12746)
Antoine Moreaux5b81e9e611d1
diff --git a/packages/twenty-server/src/engine/core-modules/auth/services/auth.service.ts b/packages/twenty-server/src/engine/core-modules/auth/services/auth.service.tsindex fb6c0f7802a..27512be2fbb 100644--- a/packages/twenty-server/src/engine/core-modules/auth/services/auth.service.ts+++ b/packages/twenty-server/src/engine/core-modules/auth/services/auth.service.ts@@ -698,7 +698,7 @@ export class AuthService {!workspaceId &&!workspaceInviteHash &&action === 'list-available-workspaces' &&- availableWorkspacesCount !== 0+ availableWorkspacesCount > 1) {const user =existingUser ??