배치 수정 페이지 저장 및 API 미리보기 버그 수정
This commit is contained in:
@@ -456,13 +456,7 @@ export class BatchManagementController {
|
||||
}
|
||||
}
|
||||
|
||||
// 토큰이 없으면 에러 (직접 입력도 안 하고 DB 선택도 안 한 경우)
|
||||
if (!finalApiKey) {
|
||||
return res.status(400).json({
|
||||
success: false,
|
||||
message: "인증 토큰이 필요합니다. 직접 입력하거나 DB에서 선택하세요.",
|
||||
});
|
||||
}
|
||||
// 토큰이 없어도 공개 API 호출 가능 (토큰 검증 제거)
|
||||
|
||||
console.log("REST API 미리보기 요청:", {
|
||||
apiUrl,
|
||||
|
||||
@@ -328,6 +328,10 @@ export class BatchService {
|
||||
updateFields.push(`auth_service_name = $${paramIndex++}`);
|
||||
updateValues.push(data.authServiceName || null);
|
||||
}
|
||||
if (data.dataArrayPath !== undefined) {
|
||||
updateFields.push(`data_array_path = $${paramIndex++}`);
|
||||
updateValues.push(data.dataArrayPath || null);
|
||||
}
|
||||
|
||||
// 배치 설정 업데이트
|
||||
const batchConfigResult = await client.query(
|
||||
|
||||
Reference in New Issue
Block a user