test(user-workspace): add unit tests for UserWorkspaceService + review #11239 (#11256)

This commit is contained in:
Antoine Moreaux
2025-03-30 08:37:16 +02:00
committed by GitHub
parent ce07d2645c
commit eea30828a4
4 changed files with 700 additions and 11 deletions
@@ -170,9 +170,7 @@ export class AuthResolver {
(await this.domainManagerService.getWorkspaceByOriginOrDefaultWorkspace(
origin,
)) ??
(await this.userWorkspaceService.findFirstRandomWorkspaceByUserId(
user.id,
));
(await this.userWorkspaceService.findFirstWorkspaceByUserId(user.id));
await this.userService.markEmailAsVerified(user.id);