mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 23:10:20 +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
|
return state
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return state
|
return state
|
||||||
@ -1655,6 +1652,9 @@ const migrateConfig = {
|
|||||||
// @ts-ignore eslint-disable-next-line
|
// @ts-ignore eslint-disable-next-line
|
||||||
delete state.websearch.contentLimit
|
delete state.websearch.contentLimit
|
||||||
}
|
}
|
||||||
|
if (state.settings) {
|
||||||
|
state.settings.testChannel = UpgradeChannel.LATEST
|
||||||
|
}
|
||||||
|
|
||||||
return state
|
return state
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user