백엔드 에러수정

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