From 25a6fcf90dab46459df743f238c36f0a43391fd0 Mon Sep 17 00:00:00 2001 From: sora-ext Date: Tue, 25 Feb 2025 16:07:04 +0100 Subject: [PATCH] Update src/client/types/migration.ts --- src/{ => client}/types/migration.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename src/{ => client}/types/migration.ts (92%) diff --git a/src/types/migration.ts b/src/client/types/migration.ts similarity index 92% rename from src/types/migration.ts rename to src/client/types/migration.ts index c4760b7..c6dfd9f 100644 --- a/src/types/migration.ts +++ b/src/client/types/migration.ts @@ -2,7 +2,7 @@ const FMT_VER_0 = 0 const FMT_VER_LATEST = FMT_VER_0 function migrate_A_to_0(e: journey): journey { - e.title = e.name; + e.title = (e as any).name; e.main.forEach((v) => { v.date_range = v.date_range || (v as any).dateRange; v.day_title = v.day_title || (v as any).step_title; @@ -19,4 +19,5 @@ export const migrator = (e: journey): journey => { default: return migrate_A_to_0(e) } + return e; } \ No newline at end of file