From 2449f324d2b39a28d91265a7433c82b09db72b30 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:26:26 +0700 Subject: [PATCH] feat: also include workflow for display condition --- src/controllers/06-request-list-controller.ts | 34 ++++++++++++++++-- src/controllers/07-task-controller.ts | 36 +++++++++++++++++-- 2 files changed, 66 insertions(+), 4 deletions(-) diff --git a/src/controllers/06-request-list-controller.ts b/src/controllers/06-request-list-controller.ts index bffc60f..53b297b 100644 --- a/src/controllers/06-request-list-controller.ts +++ b/src/controllers/06-request-list-controller.ts @@ -264,7 +264,23 @@ export class RequestListController extends Controller { stepStatus: true, productService: { include: { - service: true, + service: { + include: { + workflow: { + include: { + step: { + include: { + value: true, + responsiblePerson: { + include: { user: true }, + }, + responsibleInstitution: true, + }, + }, + }, + }, + }, + }, work: true, product: { include: { document: true }, @@ -309,7 +325,21 @@ export class RequestListController extends Controller { productService: { include: { service: { - include: { workflow: true }, + include: { + workflow: { + include: { + step: { + include: { + value: true, + responsiblePerson: { + include: { user: true }, + }, + responsibleInstitution: true, + }, + }, + }, + }, + }, }, work: true, product: { diff --git a/src/controllers/07-task-controller.ts b/src/controllers/07-task-controller.ts index 9f442b0..86b7ba9 100644 --- a/src/controllers/07-task-controller.ts +++ b/src/controllers/07-task-controller.ts @@ -160,7 +160,23 @@ export class TaskController extends Controller { }, productService: { include: { - service: true, + service: { + include: { + workflow: { + include: { + step: { + include: { + value: true, + responsiblePerson: { + include: { user: true }, + }, + responsibleInstitution: true, + }, + }, + }, + }, + }, + }, work: true, product: true, }, @@ -252,7 +268,23 @@ export class TaskController extends Controller { }, productService: { include: { - service: true, + service: { + include: { + workflow: { + include: { + step: { + include: { + value: true, + responsiblePerson: { + include: { user: true }, + }, + responsibleInstitution: true, + }, + }, + }, + }, + }, + }, work: true, product: true, },