refactor: removed unnecessary functions from remark

This commit is contained in:
2026-07-08 10:50:40 +03:30
parent b32d613a1b
commit 8481a0e86f
2 changed files with 2 additions and 33 deletions
@@ -13,19 +13,6 @@ export class RemarkService {
private readonly taskService: TaskService,
) {}
findAll(): Promise<TMRemark[]> {
return this.remarkRepository.find({ relations: { task: true } });
}
findByTask(taskId: string): Promise<TMRemark[]> {
return this.remarkRepository.find({
where: { taskId },
relations: {
task: true,
},
});
}
async findOneOrFail(id: string): Promise<TMRemark> {
const remark = await this.remarkRepository.findOne({ where: { id } });
if (!remark) throw new NotFoundException(remarkMessage.REMARK_NOT_FOUND);