feat: add upstash redis cloud sync

This commit is contained in:
Yidadaa
2023-09-19 03:18:34 +08:00
parent 59fbadd9eb
commit 83fed42997
8 changed files with 137 additions and 12 deletions

View File

@@ -20,9 +20,7 @@ export function createWebDavClient(store: SyncStore) {
headers: this.headers(),
proxyUrl,
});
console.log("[WebDav] check", res.status, res.statusText);
return [201, 200, 404, 401].includes(res.status);
} catch (e) {
console.error("[WebDav] failed to check", e);