From 3d56d79cefa2b15fafed64fdfa9607b9b65c9963 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Sun, 22 Aug 2021 23:36:22 +0400 Subject: [PATCH] try to break the sync --- account/src/routers/api-router.ts | 2 ++ website/src/lib/pouch-dbs.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/account/src/routers/api-router.ts b/account/src/routers/api-router.ts index 4376367..938a396 100644 --- a/account/src/routers/api-router.ts +++ b/account/src/routers/api-router.ts @@ -19,6 +19,8 @@ import { import * as T from "../../../website/src/lib/account-types"; import env from "../lib/env-vars"; +// TODO: ADD PROPER ERROR HANDLING THAT WILL RETURN JSON ALWAYS + function sendResponse(res: Response, payload: T.APIResponse) { return res.send(payload); } diff --git a/website/src/lib/pouch-dbs.ts b/website/src/lib/pouch-dbs.ts index 71ea856..6368c8c 100644 --- a/website/src/lib/pouch-dbs.ts +++ b/website/src/lib/pouch-dbs.ts @@ -95,7 +95,7 @@ function initializeLocalDb(type: LocalDbType, refresh: () => void, user: AT.Ling db, refresh, sync: db.sync( - `https://${user.userId}:${password}@couch.lingdocs.com/${name}`, + `https://${user.userId}:${password}a@couch.lingdocs.com/${name}`, { live: true, retry: true }, ).on("change", (info) => { if (info.direction === "pull") {