refactor: refactored task APIs

This commit is contained in:
2026-07-06 15:21:34 +03:30
parent 263ede68b2
commit da71c20d6d
6 changed files with 75 additions and 78 deletions
@@ -32,7 +32,7 @@ export class TaskPhaseController {
@ApiResponse({ status: 200, description: "TaskPhase found", type: TMTaskPhase })
@ApiResponse({ status: 404, description: "TaskPhase not found" })
findOne(@Param("id") id: string): Promise<TMTaskPhase> {
return this.taskPhaseService.findOne(id);
return this.taskPhaseService.findOneOrFail(id);
}
@Post()