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) {
|
async getById(@Path() employeeId: string) {
|
||||||
const record = await prisma.employee.findFirst({
|
const record = await prisma.employee.findFirst({
|
||||||
include: {
|
include: {
|
||||||
|
employeePassport: true,
|
||||||
|
employeeVisa: true,
|
||||||
|
employeeInCountryNotice: true,
|
||||||
employeeWork: true,
|
employeeWork: true,
|
||||||
employeeCheckup: true,
|
employeeCheckup: true,
|
||||||
employeeOtherInfo: true,
|
employeeOtherInfo: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue