From a07d2cafb649a7c0f9845af1663a6dbbfbf54103 Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Thu, 21 Sep 2023 11:47:22 +0800 Subject: [PATCH] fix sync --- src/libs/sync.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/sync.js b/src/libs/sync.js index bfa3a7c..92c2103 100644 --- a/src/libs/sync.js +++ b/src/libs/sync.js @@ -47,7 +47,7 @@ const syncByWebdav = async (data, { syncUrl, syncUser, syncKey }) => { } } - await client.putFileContents(filename, JSON.stringify(data, null, " ")); + await client.putFileContents(filename, JSON.stringify(data, null, 2)); return data; }; @@ -142,7 +142,7 @@ export const trySyncRules = async () => { export const syncShareRules = async ({ rules, syncUrl, syncKey }) => { const data = { key: KV_RULES_SHARE_KEY, - value: JSON.stringify(rules, null, " "), + value: JSON.stringify(rules, null, 2), updateAt: Date.now(), }; const args = {