Skip to content

Commit fc12d33

Browse files
authored
idb.info(): use seqStore.openKeyCursor() in place of openCursor() (#8763)
Request success handler is only using the key from the returned cursor, so an IDBCursor instance is sufficient.
1 parent 7d874a1 commit fc12d33

File tree

1 file changed

+1
-1
lines changed
  • packages/node_modules/pouchdb-adapter-idb/src

1 file changed

+1
-1
lines changed

packages/node_modules/pouchdb-adapter-idb/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ function init(api, opts, callback) {
411411
txn.objectStore(META_STORE).get(META_STORE).onsuccess = function (e) {
412412
docCount = e.target.result.docCount;
413413
};
414-
txn.objectStore(BY_SEQ_STORE).openCursor(null, 'prev').onsuccess = function (e) {
414+
txn.objectStore(BY_SEQ_STORE).openKeyCursor(null, 'prev').onsuccess = function (e) {
415415
var cursor = e.target.result;
416416
updateSeq = cursor ? cursor.key : 0;
417417
};

0 commit comments

Comments
 (0)