diff --git a/lib/database.js b/lib/database.js index 67e9121..eb49ad8 100644 --- a/lib/database.js +++ b/lib/database.js @@ -882,7 +882,7 @@ module.exports = { }); }, function(){ Tx.find({}).sort({timestamp: 'desc'}).limit(settings.index.last_txs).exec(function(err, txs){ - Stats.update({coin: coin}, { + Stats.updateOne({coin: coin}, { last: end, last_txs: '' //not used anymore left to clear out existing objects }, function() {