diff options
Diffstat (limited to 'apps/web/src/services/storage/migrations/transformers/v0-to-v1.ts')
| -rw-r--r-- | apps/web/src/services/storage/migrations/transformers/v0-to-v1.ts | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/web/src/services/storage/migrations/transformers/v0-to-v1.ts b/apps/web/src/services/storage/migrations/transformers/v0-to-v1.ts index a26feb3b..b1fcf00b 100644 --- a/apps/web/src/services/storage/migrations/transformers/v0-to-v1.ts +++ b/apps/web/src/services/storage/migrations/transformers/v0-to-v1.ts @@ -1,8 +1,17 @@ import { generateUUID } from "@/utils/id"; -import type { SerializedScene } from "@/services/storage/types"; import type { MigrationResult, ProjectRecord } from "./types"; import { isRecord } from "./utils"; +interface V1Scene { + id: string; + name: string; + isMain: boolean; + tracks: unknown[]; + bookmarks: unknown[]; + createdAt: string; + updatedAt: string; +} + export interface TransformV0ToV1Options { now?: Date; } @@ -25,7 +34,7 @@ export function transformProjectV0ToV1({ const sceneCreatedAt = now.toISOString(); const sceneUpdatedAt = now.toISOString(); - const mainScene: SerializedScene = { + const mainScene: V1Scene = { id: sceneId, name: "Main scene", isMain: true, |
