The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix authentication resolver
Charles Bochet41aae5bd2040
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 0a158e5dd55..11d6c1d63e2 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@@ -152,7 +152,7 @@ export class AuthService {where: {id: userId,},- relations: ['defaultWorkspace'],+ relations: ['defaultWorkspace', 'workspaces', 'workspaces.workspace'],});assert(user, "This user doesn't exist", NotFoundException);