Skip to content

Commit 4d0b2ec

Browse files
author
doubleface
committed
fix: Change PouchLink addDoctype signature
1 parent 0b683e8 commit 4d0b2ec

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/dataproxy/worker/worker.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,10 @@ const dataProxy: DataProxyWorker = {
218218
const pouchLink = getPouchLink(client)
219219
if (pouchLink) {
220220
const doctype = `${SHARED_DRIVE_FILE_DOCTYPE}-${driveId}`
221-
const options = {
222-
strategy: 'fromRemote',
223-
driveId,
224-
shouldStartReplication: true
225-
}
221+
const replicationOptions = { strategy: 'fromRemote', driveId }
222+
const options = { shouldStartReplication: true }
226223
if (pouchLink.addDoctype) {
227-
pouchLink.addDoctype(doctype, options)
224+
pouchLink.addDoctype(doctype, replicationOptions, options)
228225
}
229226
}
230227

0 commit comments

Comments
 (0)