feat: conditional include step status
This commit is contained in:
parent
524a493149
commit
d5678c537f
1 changed files with 7 additions and 5 deletions
|
|
@ -369,11 +369,13 @@ export class RequestListController extends Controller {
|
||||||
employee: true,
|
employee: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
stepStatus: {
|
stepStatus: cancelOnly
|
||||||
include: {
|
? true
|
||||||
task: { where: { taskStatus: TaskStatus.Complete } },
|
: {
|
||||||
},
|
include: {
|
||||||
},
|
task: { where: { taskStatus: TaskStatus.Complete } },
|
||||||
|
},
|
||||||
|
},
|
||||||
productService: {
|
productService: {
|
||||||
include: {
|
include: {
|
||||||
service: {
|
service: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue