Skip to content

Commit 2b6219a

Browse files
authored
adapter.getAttachment(): don't pass rev (#8792)
Previously the indexeddb adapter required rev to be passed through to _getAttachment(). The implementation has now changed, and this value is no longer required.
1 parent 1e69c31 commit 2b6219a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/node_modules/pouchdb-core/src/adapter.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -648,10 +648,6 @@ class AbstractPouchDB extends EventEmitter {
648648
}
649649
Object.keys(attachments).forEach((key) => {
650650
this._getAttachment(doc._id, key, attachments[key], {
651-
// Previously the revision handling was done in adapter.js
652-
// getAttachment, however since idb-next doesnt we need to
653-
// pass the rev through
654-
rev: doc._rev,
655651
binary: opts.binary,
656652
metadata: metadata,
657653
ctx: ctx

0 commit comments

Comments
 (0)