try to break the sync
This commit is contained in:
parent
40eb50ab15
commit
3d56d79cef
|
@ -19,6 +19,8 @@ import {
|
||||||
import * as T from "../../../website/src/lib/account-types";
|
import * as T from "../../../website/src/lib/account-types";
|
||||||
import env from "../lib/env-vars";
|
import env from "../lib/env-vars";
|
||||||
|
|
||||||
|
// TODO: ADD PROPER ERROR HANDLING THAT WILL RETURN JSON ALWAYS
|
||||||
|
|
||||||
function sendResponse(res: Response, payload: T.APIResponse) {
|
function sendResponse(res: Response, payload: T.APIResponse) {
|
||||||
return res.send(payload);
|
return res.send(payload);
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,7 +95,7 @@ function initializeLocalDb(type: LocalDbType, refresh: () => void, user: AT.Ling
|
||||||
db,
|
db,
|
||||||
refresh,
|
refresh,
|
||||||
sync: db.sync(
|
sync: db.sync(
|
||||||
`https://${user.userId}:${password}@couch.lingdocs.com/${name}`,
|
`https://${user.userId}:${password}a@couch.lingdocs.com/${name}`,
|
||||||
{ live: true, retry: true },
|
{ live: true, retry: true },
|
||||||
).on("change", (info) => {
|
).on("change", (info) => {
|
||||||
if (info.direction === "pull") {
|
if (info.direction === "pull") {
|
||||||
|
|
Loading…
Reference in New Issue