update
This commit is contained in:
@ -687,26 +687,25 @@ export class UserController {
|
|||||||
const userRepository = OrmHelper.DB.getRepository(User)
|
const userRepository = OrmHelper.DB.getRepository(User)
|
||||||
|
|
||||||
const detail = await userRepository.findOne({
|
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 },
|
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 = {
|
const data = {
|
||||||
...detail,
|
...detail,
|
||||||
hrms,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user