Another mongoose deprecated .update() fix

This commit is contained in:
joeuhren
2020-11-20 18:45:01 -07:00
parent bf247f782b
commit 9df813ab77
+1 -1
View File
@@ -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() {