Skip to content

Commit

Permalink
pouchdb#6230 Add update_seq option to http adapter
Browse files Browse the repository at this point in the history
Also fix last_seq propagation to change event
  • Loading branch information
dharders committed Nov 21, 2017
1 parent 749314e commit 0fef29a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/node_modules/pouchdb-replication/src/replicate.js
Expand Up @@ -298,6 +298,9 @@ function replicate(src, target, opts, returnValue, result) {
pendingBatch.pending = pending;
}

var lastSeq = change.last_seq;
delete change.last_seq;

var filter = filterChange(opts)(change);
if (!filter) {
return;
Expand Down

0 comments on commit 0fef29a

Please sign in to comment.