Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
DeprecationWarning: collection.save (#2758)
Browse files Browse the repository at this point in the history
[i2607]: [#2607]
  • Loading branch information
fgrosswig authored Oct 11, 2021
1 parent 8367b89 commit 4e4e7a6
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 4e4e7a6

Please sign in to comment.