move code to workspaceUser service

This commit is contained in:
Philipinho
2024-03-03 17:40:10 +00:00
parent 7afd893fa1
commit bfebfb27a9
6 changed files with 232 additions and 165 deletions

View File

@ -47,7 +47,7 @@ export class JwtGuard implements CanActivate {
//fetch user and current workspace data from db
request['user'] = await this.userService.getUserInstance(payload.sub);
} catch (error) {
throw new UnauthorizedException(error.message);
throw new UnauthorizedException('Failed to fetch auth user');
}
return true;