This commit is contained in:
Narul Hidayah
2026-02-03 23:58:53 +07:00
parent 97bf585ed3
commit 3d509d6497
4 changed files with 5 additions and 8 deletions

View File

@ -23,9 +23,9 @@
"engine": "postgres",
"host": "127.0.0.1",
"port": "15432",
"username": "tcel_staging",
"password": "fK*#o>1W2&6f",
"database": "tcel_anatl_staging",
"username": "saude_tl",
"password": "saude_tl_local",
"database": "saude_tl",
"synchronize": true,
"logging": true
},

View File

@ -47,7 +47,7 @@ export class AuthController {
const userRefreshTokenRepository = OrmHelper.DB.getRepository(UserRefreshToken)
const user = await userRepository.findOne({
relations: ["roles", "roles.application", "employee", "employee.department", "employee.position","employee.airport","employee.shift"],
relations: ["roles", "roles.application", "employee", "employee.department", "employee.position", "employee.shift"],
select: ["id", "email", "name", "password", "username", "roles"],
where: { username: param.username },
})

View File

@ -768,7 +768,6 @@ export class UserController {
"employee",
"employee.department",
"employee.position",
"employee.airport",
"employee.shift",
"employee.nationality",
"employee.aldeia",

View File

@ -12,7 +12,6 @@ import {
UserActivity,
UserRefreshToken,
UserRole,
HrmsAirport,
HrmsPosition,
HrmsEmployee,
HrmsDepartment,
@ -50,8 +49,7 @@ export class OrmHelper {
Menu,
Application,
Nationality,
HrmsDepartment, //
HrmsAirport,
HrmsDepartment,
HrmsPosition,
HrmsShift,
HrmsEmployee,