From 29065328af33b6dc28b7c02c4a530c2db6c09a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=BE=E6=96=87=E9=82=A6?= <1150823486@qq.com> Date: Fri, 11 Dec 2020 00:17:14 +0800 Subject: [PATCH] fix pruneHeight field (#78) Co-authored-by: binwenbang --- db.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db.ts b/db.ts index 8ad9b40..20e2e2c 100644 --- a/db.ts +++ b/db.ts @@ -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({