From 12128f278cac3c2878be17ecdf03930c5f34a708 Mon Sep 17 00:00:00 2001 From: DDD1542 Date: Wed, 28 Jan 2026 17:00:26 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=ED=99=94=EB=A9=B4=20=EC=A0=80?= =?UTF-8?q?=EC=9E=A5=20=EB=A1=9C=EC=A7=81=EC=97=90=EC=84=9C=20updatedAt=20?= =?UTF-8?q?=ED=95=84=EB=93=9C=20=EC=A0=9C=EA=B1=B0=20=EB=B0=8F=20=EB=B2=84?= =?UTF-8?q?=EC=A0=84=20=EC=A0=95=EB=B3=B4=20=EC=A3=BC=EC=84=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 화면 저장 시 updatedAt 필드를 제거하고, DB에서 updated_at 컬럼으로 관리하도록 변경하였습니다. - 관련된 주석을 업데이트하여 변경 사항을 명확히 하였습니다. --- backend-node/src/services/screenManagementService.ts | 5 ++--- frontend/lib/schemas/componentConfig.ts | 1 - frontend/lib/utils/layoutV2Converter.ts | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/backend-node/src/services/screenManagementService.ts b/backend-node/src/services/screenManagementService.ts index afca0251..0f5f9b38 100644 --- a/backend-node/src/services/screenManagementService.ts +++ b/backend-node/src/services/screenManagementService.ts @@ -4334,11 +4334,10 @@ export class ScreenManagementService { throw new Error("이 화면의 레이아웃을 저장할 권한이 없습니다."); } - // 버전 정보 추가 + // 버전 정보 추가 (updatedAt은 DB 컬럼 updated_at으로 관리) const dataToSave = { version: "2.0", - ...layoutData, - updatedAt: new Date().toISOString() + ...layoutData }; // UPSERT (있으면 업데이트, 없으면 삽입) diff --git a/frontend/lib/schemas/componentConfig.ts b/frontend/lib/schemas/componentConfig.ts index f45fc49b..5e008b7f 100644 --- a/frontend/lib/schemas/componentConfig.ts +++ b/frontend/lib/schemas/componentConfig.ts @@ -971,6 +971,5 @@ export function saveLayoutV2(components: Array