feature/v2-unified-renewal #379
|
|
@ -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 (있으면 업데이트, 없으면 삽입)
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -136,7 +136,6 @@ export function convertLegacyToV2(legacyLayout: LegacyLayoutData): LayoutV2 {
|
|||
return {
|
||||
version: "2.0",
|
||||
components,
|
||||
updatedAt: new Date().toISOString(),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue