try to break the sync

This commit is contained in:
lingdocs 2021-08-22 23:36:22 +04:00
parent 40eb50ab15
commit 3d56d79cef
2 changed files with 3 additions and 1 deletions

View File

@ -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);
}

View File

@ -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") {