Another mongoose deprecated .update() fix
This commit is contained in:
+1
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user