From da91ba1376d4acfa3de282d2066832a7f2b30f50 Mon Sep 17 00:00:00 2001 From: Narul Hidayah Date: Mon, 5 Jan 2026 20:01:34 +0700 Subject: [PATCH] update --- src/controllers/user.ts | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/controllers/user.ts b/src/controllers/user.ts index 6b5902c..f0bdfe6 100644 --- a/src/controllers/user.ts +++ b/src/controllers/user.ts @@ -687,26 +687,25 @@ export class UserController { const userRepository = OrmHelper.DB.getRepository(User) const detail = await userRepository.findOne({ - relations: ["roles", "roles.application"], + relations: [ + "roles", + "roles.application", + "employee", + "employee.department", + "employee.position", + "employee.airport", + "employee.shift", + "employee.nationality", + "employee.aldeia", + "employee.suco", + "employee.administrativu", + "employee.munisipo" + ], where: { id: param.id }, }) - var hrms = { - uuid: null, - idx: null, - nik: null, - name: null, - title: null, - department_id: null, - departement_uuid: null, - department_name: null, - level_id: null, - level_name: null, - } - const data = { ...detail, - hrms, } if (data != null) {