Workspace member can be null (#12597)

Following https://github.com/twentyhq/twenty/pull/12110
Fixes https://github.com/twentyhq/twenty/issues/12594
This commit is contained in:
Paul Rastoin
2025-06-13 14:56:11 +02:00
committed by GitHub
parent 96c2f5477c
commit 57d002d79a

View File

@ -201,7 +201,7 @@ export class UserResolver {
);
if (!isDefined(workspaceMemberEntity)) {
throw new Error('Workspace member not found');
return null;
}
const workspaceId = workspace.id;