REST API 연결 생성 시 회사별 연결명 중복 허용

This commit is contained in:
dohyeons
2025-12-02 11:12:09 +09:00
parent cd47f569e2
commit 436d604bb3
3 changed files with 4 additions and 1 deletions

View File

@@ -97,6 +97,8 @@ router.post(
const data: ExternalRestApiConnection = {
...req.body,
created_by: req.user?.userId || "system",
// 로그인 사용자의 company_code 사용 (프론트에서 안 보내도 자동 설정)
company_code: req.body.company_code || req.user?.companyCode || "*",
};
const result =

View File

@@ -233,6 +233,7 @@ export class ExternalRestApiConnectionService {
// 디버깅: 저장하려는 데이터 로깅
logger.info(`REST API 연결 생성 요청 데이터:`, {
connection_name: data.connection_name,
company_code: data.company_code,
default_method: data.default_method,
endpoint_path: data.endpoint_path,
base_url: data.base_url,