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:
beyondkmp 2025-06-28 17:52:36 +08:00 committed by GitHub
parent 780373d5f7
commit ece59cfacf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {