Skip to content

Commit

Permalink
pouchdb#6230 Add update_seq option to allDocsKeysQuery()
Browse files Browse the repository at this point in the history
  • Loading branch information
dharders committed Nov 7, 2017
1 parent dc6496e commit f76f7a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/node_modules/pouchdb-core/src/adapter.js
Expand Up @@ -137,6 +137,9 @@ function allDocsKeysQuery(api, opts, callback) {
if (err) {
return reject(err);
}
if (opts.update_seq && res.update_seq !== undefined) {
finalResults.update_seq = res.update_seq;
}
finalResults.total_rows = res.total_rows;
resolve(res.rows[0] || {key: key, error: 'not_found'});
});
Expand Down

0 comments on commit f76f7a6

Please sign in to comment.