Skip to content

Commit

Permalink
fix(indexeddb): rev purging typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jankaszel authored and AlbaHerrerias committed Dec 7, 2022
1 parent 3e3f761 commit d5f29f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function purge(txn, docId, revs, callback) {
doc.rev_tree = removeLeafFromTree(doc.rev_tree, rev);

// assign new revs
delete doc.revs[revs];
delete doc.revs[rev];
}

if (doc.rev_tree.length === 0) {
Expand Down

0 comments on commit d5f29f7

Please sign in to comment.