Skip to content

Commit

Permalink
fix: fixed url
Browse files Browse the repository at this point in the history
  • Loading branch information
mbret committed Jul 29, 2024
1 parent ea60232 commit 837e894
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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`

Expand Down

0 comments on commit 837e894

Please sign in to comment.