mirror of
https://github.com/docmost/docmost.git
synced 2025-11-20 19:01:12 +10:00
move code to workspaceUser service
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user