mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 13:19:33 +08:00
fix(migrate): handle state return in migration process and add upgradechannel setting (#7634)
* fix(migrate): handle state return in migration process and add upgrade channel setting * fix(migrate): move upgrade channel setting to the correct migration step
This commit is contained in:
parent
780373d5f7
commit
ece59cfacf
@ -1628,9 +1628,6 @@ const migrateConfig = {
|
||||
}
|
||||
}
|
||||
})
|
||||
if (state.settings) {
|
||||
state.settings.testChannel = UpgradeChannel.LATEST
|
||||
}
|
||||
return state
|
||||
} catch (error) {
|
||||
return state
|
||||
@ -1655,6 +1652,9 @@ const migrateConfig = {
|
||||
// @ts-ignore eslint-disable-next-line
|
||||
delete state.websearch.contentLimit
|
||||
}
|
||||
if (state.settings) {
|
||||
state.settings.testChannel = UpgradeChannel.LATEST
|
||||
}
|
||||
|
||||
return state
|
||||
} catch (error) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user