Update src/client/types/migration.ts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
sora-ext 2025-02-28 17:50:51 +01:00
parent 208bf1805e
commit 6260d396e5

View File

@ -6,7 +6,8 @@ function migrate_A_to_0(e: journey): journey {
e.main.forEach((v) => { e.main.forEach((v) => {
v.date_range = v.date_range || (v as any).dateRange; v.date_range = v.date_range || (v as any).dateRange;
v.day_title = v.day_title || (v as any).step_title; 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) console.log(e)
return e; return e;