feat: also include workflow for display condition

This commit is contained in:
Methapon2001 2024-12-12 15:26:26 +07:00
parent 4ef407c8b1
commit 2449f324d2
2 changed files with 66 additions and 4 deletions

View file

@ -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: {

View file

@ -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,
},