From 6260d396e5364b4c3f418177181b9ccdbd58e035 Mon Sep 17 00:00:00 2001 From: sora-ext Date: Fri, 28 Feb 2025 17:50:51 +0100 Subject: [PATCH] Update src/client/types/migration.ts --- src/client/types/migration.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/types/migration.ts b/src/client/types/migration.ts index c6dfd9f..2ccf0c0 100644 --- a/src/client/types/migration.ts +++ b/src/client/types/migration.ts @@ -6,7 +6,8 @@ function migrate_A_to_0(e: journey): journey { 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; - v.travel; + v.places.activities = v.places.activities || (v as any).places.places; + v.travel = v.travel || []; }) console.log(e) return e;