mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Bump to v4
Preparing for adding support to v3.5 and above
This commit is contained in:
@ -4,6 +4,7 @@ import { InstanceV5 } from './v5'
|
||||
import { InstanceV6 } from './v6'
|
||||
import { InstanceV7 } from './v7'
|
||||
import { InstanceV8 } from './v8'
|
||||
import { InstanceV9 } from './v9'
|
||||
|
||||
const instancesMigration = {
|
||||
4: (state: InstanceV3): InstanceV4 => {
|
||||
@ -87,6 +88,17 @@ const instancesMigration = {
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
9: (state: InstanceV8): { instances: InstanceV9[] } => {
|
||||
return {
|
||||
// @ts-ignore
|
||||
instances: state.instances.map(instance => {
|
||||
return {
|
||||
...instance,
|
||||
version: '0'
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user