백엔드 TypeScript 오류 수정

- dataflowControlService.ts의 TypeScript 오류 해결
- condition.field에 non-null assertion (!) 추가
- catch 블록의 error 타입을 unknown으로 명시적 지정
- 서버 정상 실행을 위한 필수 수정
This commit is contained in:
leeheejin 2025-09-30 18:45:17 +09:00
parent 990d8123b8
commit d5c354c521
1 changed files with 3 additions and 3 deletions

View File

@ -958,7 +958,7 @@ export class DataflowControlService {
condition.value !== undefined
) {
// 조건에서 테이블명을 추출 (테이블명.필드명 형식이거나 기본 소스 테이블)
const parts = condition.field.split(".");
const parts = condition.field!.split(".");
let tableName: string;
let fieldName: string;
@ -976,7 +976,7 @@ export class DataflowControlService {
`DELETE 조건에서 테이블을 결정할 수 없습니다. 필드를 "테이블명.필드명" 형식으로 지정하거나 fieldMappings에 targetTable을 설정하세요.`
);
}
fieldName = condition.field;
fieldName = condition.field!;
}
if (!tableGroups.has(tableName)) {
@ -1041,7 +1041,7 @@ export class DataflowControlService {
targetTable: tableName,
whereClause,
});
} catch (error) {
} catch (error: unknown) {
console.error(`❌ DELETE 실패:`, {
table: tableName,
error: error,