Update src/client/types/migration.ts
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4083c4268f
commit
25a6fcf90d
@ -2,7 +2,7 @@ const FMT_VER_0 = 0
|
|||||||
const FMT_VER_LATEST = FMT_VER_0
|
const FMT_VER_LATEST = FMT_VER_0
|
||||||
|
|
||||||
function migrate_A_to_0(e: journey): journey {
|
function migrate_A_to_0(e: journey): journey {
|
||||||
e.title = e.name;
|
e.title = (e as any).name;
|
||||||
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;
|
||||||
@ -19,4 +19,5 @@ export const migrator = (e: journey): journey => {
|
|||||||
default:
|
default:
|
||||||
return migrate_A_to_0(e)
|
return migrate_A_to_0(e)
|
||||||
}
|
}
|
||||||
|
return e;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user