refactor: 화면 저장 로직에서 updatedAt 필드 제거 및 버전 정보 주석 수정

- 화면 저장 시 updatedAt 필드를 제거하고, DB에서 updated_at 컬럼으로 관리하도록 변경하였습니다.
- 관련된 주석을 업데이트하여 변경 사항을 명확히 하였습니다.
This commit is contained in:
DDD1542 2026-01-28 17:00:26 +09:00
parent 2fac9371c8
commit 12128f278c
3 changed files with 2 additions and 5 deletions

View File

@ -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 (있으면 업데이트, 없으면 삽입)

View File

@ -971,6 +971,5 @@ export function saveLayoutV2(components: Array<ComponentV2 & { config?: Record<s
return {
version: "2.0",
components: components.map(saveComponentV2),
updatedAt: new Date().toISOString(),
};
}

View File

@ -136,7 +136,6 @@ export function convertLegacyToV2(legacyLayout: LegacyLayoutData): LayoutV2 {
return {
version: "2.0",
components,
updatedAt: new Date().toISOString(),
};
}