From 3455f5ad5da30f1f9ce2f514868a2266bd669aec Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 12 Dec 2024 11:07:14 +0700 Subject: [PATCH] refactor: tmp remove perm for get by id --- src/controllers/07-task-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/07-task-controller.ts b/src/controllers/07-task-controller.ts index a6246af..e732434 100644 --- a/src/controllers/07-task-controller.ts +++ b/src/controllers/07-task-controller.ts @@ -139,7 +139,7 @@ export class TaskController extends Controller { @Query() taskAssignedUserId?: string, ) { const record = await prisma.taskOrder.findFirst({ - where: { id: taskId, registeredBranch: { OR: permissionCondCompany(req.user) } }, + where: { id: taskId }, include: { userTask: true, taskList: {