refactor: change return type of remove funcs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user