Fix workspace/user deletion (#2648)

* Fix workspace/user deletion

* remove logs

* add defaultWorkspace check
This commit is contained in:
Weiko
2023-11-22 17:12:46 +01:00
committed by GitHub
parent ac2fedb148
commit ccaa96bc58
12 changed files with 90 additions and 19 deletions
@@ -22,6 +22,7 @@ export class WorkspaceService extends TypeOrmQueryService<Workspace> {
assert(workspace, 'Workspace not found');
await this.workspaceManagerService.delete(id);
await this.workspaceRepository.delete(id);
return workspace;
}