Skip to content

Commit 505d46f

Browse files
committedDec 12, 2018
Change to not fetch rates since before the fix cause they will not be correct anyway
1 parent c1e8fcb commit 505d46f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎lib/fiatrateservice.js

+8
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,14 @@ FiatRateService.prototype.getRate = function(opts, cb) {
116116
var provider = opts.provider || self.defaultProvider;
117117
var ts = (_.isNumber(opts.ts) || _.isArray(opts.ts)) ? opts.ts : now;
118118

119+
if (new Date(ts) < Date.parse("2018-12-13")) {
120+
return cb(null, {
Has a conversation. Original line has a conversation.
121+
ts: ts,
122+
rate: undefined,
123+
fetchedOn: undefined
124+
});
125+
}
126+
119127
async.map([].concat(ts), function(ts, cb) {
120128
self.storage.fetchFiatRate(provider, opts.code, ts, function(err, rate) {
121129
if (err) return cb(err);

0 commit comments

Comments
 (0)
Please sign in to comment.