백엔드 에러수정

This commit is contained in:
kjs 2025-09-25 11:04:02 +09:00
parent 623a76080a
commit dd902cafab
1 changed files with 16 additions and 16 deletions

View File

@ -186,17 +186,17 @@ export class AuthService {
});
// DB에서 조회한 원본 사용자 정보 상세 로그
console.log("🔍 AuthService - DB 원본 사용자 정보:", {
userId: userInfo.user_id,
company_code: userInfo.company_code,
company_code_type: typeof userInfo.company_code,
company_code_is_null: userInfo.company_code === null,
company_code_is_undefined: userInfo.company_code === undefined,
company_code_is_empty: userInfo.company_code === "",
dept_code: userInfo.dept_code,
allUserFields: Object.keys(userInfo),
companyInfo: companyInfo?.company_name,
});
//console.log("🔍 AuthService - DB 원본 사용자 정보:", {
// userId: userInfo.user_id,
// company_code: userInfo.company_code,
// company_code_type: typeof userInfo.company_code,
// company_code_is_null: userInfo.company_code === null,
// company_code_is_undefined: userInfo.company_code === undefined,
// company_code_is_empty: userInfo.company_code === "",
// dept_code: userInfo.dept_code,
// allUserFields: Object.keys(userInfo),
// companyInfo: companyInfo?.company_name,
//});
// PersonBean 형태로 변환 (null 값을 undefined로 변환)
const personBean: PersonBean = {
@ -222,11 +222,11 @@ export class AuthService {
locale: userInfo.locale || "KR",
};
console.log("📦 AuthService - 최종 PersonBean:", {
userId: personBean.userId,
companyCode: personBean.companyCode,
deptCode: personBean.deptCode,
});
//console.log("📦 AuthService - 최종 PersonBean:", {
// userId: personBean.userId,
// companyCode: personBean.companyCode,
// deptCode: personBean.deptCode,
//});
logger.info(`사용자 정보 조회 완료: ${userId}`);
return personBean;