new couchdb server

This commit is contained in:
adueck 2022-11-04 12:48:33 +05:00
parent b41be2bb76
commit 257b790315
2 changed files with 1 additions and 6 deletions

View File

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

View File

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