fix: wrong model
This commit is contained in:
parent
2e0cb7661d
commit
71721cb03c
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue