refactor: change return type of remove funcs

This commit is contained in:
2026-06-30 14:46:17 +03:30
parent 2077477445
commit a134429fa4
4 changed files with 10 additions and 6 deletions
@@ -57,8 +57,10 @@ export class WorkspaceService {
return this.workspaceRepository.save(workspace);
}
async remove(id: string): Promise<void> {
await this.findOneOrFail(id);
async remove(id: string): Promise<TMWorkspace> {
const workspace = await this.findOneOrFail(id);
await this.workspaceRepository.delete(id);
return workspace;
}
}