* fixes and cleanups

* db transactions
* add default space to workspace
This commit is contained in:
Philipinho
2024-03-01 01:07:30 +00:00
parent 41ecf2d082
commit 3d90fc01ad
13 changed files with 374 additions and 121 deletions
@@ -9,7 +9,7 @@ export const CurrentWorkspace = createParamDecorator(
const request = ctx.switchToHttp().getRequest();
if (!request['user'] || !request['user'].workspace) {
throw new UnauthorizedException();
throw new UnauthorizedException('Workspace not found');
}
return request['user'] ? request['user'].workspace : undefined;