Skip to content

Commit

Permalink
Fix cursor in deleteExpireEntries
Browse files Browse the repository at this point in the history
  • Loading branch information
tfedor committed May 29, 2024
1 parent 55e8907 commit 608fd11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/Background/Db/IndexedDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default class IndexedDB {
>(storeName: StoreName, indexName: IndexName) {
const tx = this.db.transaction(storeName, "readwrite");
const index = tx.store.index(indexName);
let cursor = await index.openKeyCursor(IDBKeyRange.upperBound(TimeUtils.now()));
let cursor = await index.openCursor(IDBKeyRange.upperBound(TimeUtils.now()));

if (cursor) {
while (cursor) {
Expand Down

0 comments on commit 608fd11

Please sign in to comment.