From 837e89460fdb972f078df22d305be6b36fb9bf54 Mon Sep 17 00:00:00 2001 From: Maxime Bret Date: Mon, 29 Jul 2024 20:45:46 +0200 Subject: [PATCH] fix: fixed url --- .../web/src/rxdb/replication/replicateCouchDBCollection.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web/src/rxdb/replication/replicateCouchDBCollection.ts b/packages/web/src/rxdb/replication/replicateCouchDBCollection.ts index dd367caf..b38a76b7 100644 --- a/packages/web/src/rxdb/replication/replicateCouchDBCollection.ts +++ b/packages/web/src/rxdb/replication/replicateCouchDBCollection.ts @@ -16,9 +16,9 @@ export const replicateCouchDBCollection = ({ "pull" | "push" | "url" | "replicationIdentifier" | "collection" >) => replicateCouchDB({ - replicationIdentifier: `${API_COUCH_URI}${dbName}-${collection.name}-replication`, + replicationIdentifier: `${API_COUCH_URI}/${dbName}-${collection.name}-replication`, collection: collection, - url: `${API_COUCH_URI}${dbName}/`, + url: `${API_COUCH_URI}/${dbName}/`, live: false, waitForLeadership: false, ...params, @@ -34,7 +34,7 @@ export const replicateCouchDBCollection = ({ if ( typeof url === "string" && - url.startsWith(`${API_COUCH_URI}${dbName}/_changes`) + url.startsWith(`${API_COUCH_URI}/${dbName}/_changes`) ) { url = `${url}&filter=_selector`