fix: wrong model

This commit is contained in:
Methapon2001 2024-12-06 17:42:27 +07:00
parent 2e0cb7661d
commit 71721cb03c

View file

@ -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")