Skip to content

Commit

Permalink
DeprecationWarning: collection.save
Browse files Browse the repository at this point in the history
[i2607]: [DeviaVir#2607]
  • Loading branch information
fgrosswig committed Oct 11, 2021
1 parent 8367b89 commit c0a049c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/trade.js
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ module.exports = function (program, conf) {
}
marker.to = marker.to ? Math.max(marker.to, trade_cursor) : trade_cursor
marker.newest_time = Math.max(marker.newest_time, trade.time)
trades.save(trade, function (err) {
trades.insertOne(trade, function (err) {
// ignore duplicate key errors
if (err && err.code !== 11000) {
console.error('\n' + moment().format('YYYY-MM-DD HH:mm:ss') + ' - error saving trade')
Expand Down

0 comments on commit c0a049c

Please sign in to comment.