mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: write back config version
This commit is contained in:
parent
8184b8699e
commit
4e0bfee44e
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ export async function onConfigOutdated<T extends { [key: string]: any }>(
|
|||
const config = await storageHelper.get<Storage>()
|
||||
|
||||
if (config && config.configVersion < configVersion) {
|
||||
const { configVersion, ...restConfig } = config
|
||||
const { configVersion: $configVersion, ...restConfig } = config
|
||||
await runIfOutdated(restConfig as T)
|
||||
await storageHelper.set({ configVersion })
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue