diff --git a/src/main/modules/sync/data.ts b/src/main/modules/sync/data.ts index 4c082f1b..576a9cd5 100644 --- a/src/main/modules/sync/data.ts +++ b/src/main/modules/sync/data.ts @@ -9,15 +9,15 @@ import log from './log' export const getSyncAuthKey = async(serverId: string) => { const store = getStore(STORE_NAMES.SYNC) - const keys = store.get('syncAuthKey_v3') as Record | null + const keys = store.get('syncAuthKey') as Record | null if (!keys) return null return keys[serverId] ?? null } export const setSyncAuthKey = async(serverId: string, info: LX.Sync.ClientKeyInfo) => { const store = getStore(STORE_NAMES.SYNC) - let keys: Record = (store.get('syncAuthKey_v3') as Record | null) ?? {} + let keys: Record = (store.get('syncAuthKey') as Record | null) ?? {} keys[serverId] = info - store.set('syncAuthKey_v3', keys) + store.set('syncAuthKey', keys) } let syncHost: string