From d5c354c521c37594f7181cb8197a6734d874cf2d Mon Sep 17 00:00:00 2001 From: leeheejin Date: Tue, 30 Sep 2025 18:45:17 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=B1=EC=97=94=EB=93=9C=20TypeScript=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - dataflowControlService.ts의 TypeScript 오류 해결 - condition.field에 non-null assertion (!) 추가 - catch 블록의 error 타입을 unknown으로 명시적 지정 - 서버 정상 실행을 위한 필수 수정 --- backend-node/src/services/dataflowControlService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend-node/src/services/dataflowControlService.ts b/backend-node/src/services/dataflowControlService.ts index 07a6bd79..2b685ab3 100644 --- a/backend-node/src/services/dataflowControlService.ts +++ b/backend-node/src/services/dataflowControlService.ts @@ -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,