보안 점검 및 대시보드 문구 수정
This commit is contained in:
@@ -26,7 +26,7 @@ export function readKisCredentialsFromHeaders(headers: Headers): KisCredentialIn
|
||||
}
|
||||
|
||||
/**
|
||||
* @description 요청 헤더(또는 서버 환경변수)에서 계좌번호(8-2)를 읽어옵니다.
|
||||
* @description 요청 헤더에서 계좌번호(8-2)를 읽어옵니다.
|
||||
* @param headers 요청 헤더
|
||||
* @returns 계좌번호 파트(8 + 2) 또는 null
|
||||
* @see app/api/kis/domestic/balance/route.ts 잔고 조회 시 필수 계좌정보 파싱
|
||||
@@ -35,11 +35,5 @@ export function readKisAccountParts(headers: Headers) {
|
||||
const headerAccountNo = headers.get("x-kis-account-no");
|
||||
const headerAccountProductCode = headers.get("x-kis-account-product-code");
|
||||
|
||||
const envAccountNo = process.env.KIS_ACCOUNT_NO;
|
||||
const envAccountProductCode = process.env.KIS_ACCOUNT_PRODUCT_CODE;
|
||||
|
||||
return (
|
||||
parseKisAccountParts(headerAccountNo, headerAccountProductCode) ??
|
||||
parseKisAccountParts(envAccountNo, envAccountProductCode)
|
||||
);
|
||||
return parseKisAccountParts(headerAccountNo, headerAccountProductCode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user