Skip to content

Commit

Permalink
fix pruneHeight field (#78)
Browse files Browse the repository at this point in the history
Co-authored-by: binwenbang <[email protected]>
  • Loading branch information
Notation and binwenbang authored Dec 10, 2020
1 parent bb4a805 commit 2906532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class Db {
if (lastPrunedHeight) {
return await this.db.collection('graphs').find({
"tokenDetails.tokenIdHex": tokenIdHex,
"$or": [ { "graphTxn.pruneHeight": { "$gt": lastPrunedHeight } }, { "graphTxn.pruneHeight": null }, { "graphTxn.txid": tokenIdHex }]
"$or": [ { "graphTxn._pruneHeight": { "$gt": lastPrunedHeight } }, { "graphTxn._pruneHeight": null }, { "graphTxn.txid": tokenIdHex }]
}).toArray();
} else {
return await this.db.collection('graphs').find({
Expand Down

0 comments on commit 2906532

Please sign in to comment.