This commit is contained in:
Gabe Yuan
2023-09-21 11:47:22 +08:00
parent 1b38f19cc1
commit a07d2cafb6

View File

@@ -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 = {