배치 스케쥴러 함수명 오류 및 매핑 조회 누락 수정

This commit is contained in:
dohyeons
2025-12-01 11:34:22 +09:00
parent ad0a84f2c3
commit 75bdc19f25
3 changed files with 10 additions and 2 deletions

View File

@@ -124,6 +124,14 @@ export class BatchSchedulerService {
try {
logger.info(`배치 실행 시작: ${config.batch_name} (ID: ${config.id})`);
// 매핑 정보가 없으면 상세 조회로 다시 가져오기
if (!config.batch_mappings || config.batch_mappings.length === 0) {
const fullConfig = await BatchService.getBatchConfigById(config.id);
if (fullConfig.success && fullConfig.data) {
config = fullConfig.data;
}
}
// 실행 로그 생성
const executionLogResponse =
await BatchExecutionLogService.createExecutionLog({