diff --git a/src/controllers/07-task-controller.ts b/src/controllers/07-task-controller.ts index a23d2f3..131ca06 100644 --- a/src/controllers/07-task-controller.ts +++ b/src/controllers/07-task-controller.ts @@ -386,7 +386,7 @@ export class TaskOrderAttachmentController extends Controller { include: { registeredBranch: { include: branchRelationPermInclude(user) } }, where: { id }, }); - if (!data) throw notFoundError("Branch"); + if (!data) throw notFoundError("Task Order"); await permissionCheck(user, data.registeredBranch); } @Get("attachment")