refactor: removed unnecessary functions from taskphase

This commit is contained in:
2026-07-08 10:32:45 +03:30
parent ff08da1330
commit b0668c7b2c
2 changed files with 2 additions and 30 deletions
@@ -13,16 +13,6 @@ export class TaskPhaseService {
private readonly projectService: ProjectService
) {}
findAll(): Promise<TMTaskPhase[]> {
return this.taskPhaseRepository.find();
}
findByProject(projectId: string): Promise<TMTaskPhase[]> {
return this.taskPhaseRepository.find({
where: {projectId}
});
}
async findOneOrFail(id: string): Promise<TMTaskPhase> {
const taskPhase = await this.taskPhaseRepository.findOne({where: {id}});
if (!taskPhase) throw new NotFoundException(TaskPhaseMessage.TASK_PHASE_NOT_FOUND);