From 257b790315dfa32f19ac97a92ede50a28e5fb527 Mon Sep 17 00:00:00 2001 From: adueck Date: Fri, 4 Nov 2022 12:48:33 +0500 Subject: [PATCH] new couchdb server --- account/src/lib/couch-db.ts | 5 ----- website/src/lib/pouch-dbs.ts | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/account/src/lib/couch-db.ts b/account/src/lib/couch-db.ts index d66d6af..3c0b953 100644 --- a/account/src/lib/couch-db.ts +++ b/account/src/lib/couch-db.ts @@ -9,11 +9,6 @@ const usersDb = nano.db.use("lingdocs-users"); const feedbackDb = nano.db.use("feedback"); const paymentsDb = nano.db.use("payments"); const userDbPrefix = "userdb-"; -console.log("url========") -console.log(env.couchDbURL); -nano.db.list().then((res) => { - console.log(res); -}); export async function addFeedback(feedback: any) { await feedbackDb.insert(feedback); diff --git a/website/src/lib/pouch-dbs.ts b/website/src/lib/pouch-dbs.ts index 26cc17e..500ba64 100644 --- a/website/src/lib/pouch-dbs.ts +++ b/website/src/lib/pouch-dbs.ts @@ -88,7 +88,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}@couchdb.lingdocs.com/${name}`, { live: true, retry: true }, ).on("change", (info) => { if (info.direction === "pull") {