feat: include more relation in employee
This commit is contained in:
parent
ae7392dc18
commit
492f05a2ca
1 changed files with 3 additions and 0 deletions
|
|
@ -244,6 +244,9 @@ export class EmployeeController extends Controller {
|
|||
async getById(@Path() employeeId: string) {
|
||||
const record = await prisma.employee.findFirst({
|
||||
include: {
|
||||
employeePassport: true,
|
||||
employeeVisa: true,
|
||||
employeeInCountryNotice: true,
|
||||
employeeWork: true,
|
||||
employeeCheckup: true,
|
||||
employeeOtherInfo: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue