Fix authentication resolver

This commit is contained in:
Charles Bochet 2024-03-22 17:47:51 +01:00
parent 3c5c9c2f31
commit 41aae5bd20

View File

@ -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);