From da804e1f69233675e655f15de62fcddf50e18045 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Wed, 1 Mar 2023 18:47:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=8D=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/modules/sync/data.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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