Skip to content

Commit

Permalink
fix: remove unnecessary $setOnInsert
Browse files Browse the repository at this point in the history
  • Loading branch information
habibalkhabbaz committed Aug 18, 2022
1 parent 73a9563 commit b1b1495
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 20 deletions.
5 changes: 0 additions & 5 deletions app/binance/__tests__/ath-candles.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,6 @@ describe('ath-candles.js', () => {
low: 0.056132,
open: 0.05655,
volume: 68.888
},
$setOnInsert: {
interval: '1d',
key: 'ETHBTC',
time: 1508328900000
}
},
upsert: true
Expand Down
5 changes: 0 additions & 5 deletions app/binance/__tests__/candles.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,6 @@ describe('candles.js', () => {
low: 0.056132,
open: 0.05655,
volume: 68.888
},
$setOnInsert: {
interval: '30m',
key: 'ETHBTC',
time: 1508328900000
}
},
upsert: true
Expand Down
5 changes: 0 additions & 5 deletions app/binance/ath-candles.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,6 @@ const syncATHCandles = async (logger, symbols) => {
low: +athCandle.low,
close: +athCandle.close,
volume: +athCandle.volume
},
$setOnInsert: {
key: symbol,
interval: buyATHRestrictionCandlesInterval,
time: +athCandle.openTime
}
},
upsert: true
Expand Down
5 changes: 0 additions & 5 deletions app/binance/candles.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ const syncCandles = async (logger, symbols) => {
low: +candle.low,
close: +candle.close,
volume: +candle.volume
},
$setOnInsert: {
key: symbol,
interval,
time: +candle.openTime
}
},
upsert: true
Expand Down

0 comments on commit b1b1495

Please sign in to comment.