refactor: include relation
This commit is contained in:
parent
01a647f6b9
commit
a6aa96a6f9
1 changed files with 7 additions and 0 deletions
|
|
@ -104,6 +104,13 @@ export class RequestDataController extends Controller {
|
|||
},
|
||||
},
|
||||
},
|
||||
employee: {
|
||||
include: {
|
||||
employeePassport: {
|
||||
orderBy: { expireDate: "desc" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
take: pageSize,
|
||||
skip: (page - 1) * pageSize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue