Skip to content

Commit

Permalink
fix askmike#375, part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Jul 10, 2016
1 parent 1018c78 commit cc28b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/tradingAdvisor.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ Actor.prototype.prepareHistoricalData = function(done) {
);
}

reader.get(result, exchangeFrom, 'full', function(rows) {
reader.get(result, exchangeFrom, 'full', function(err, rows) {
// todo: do this in proper place

rows = rows.map(row => {
rows = _.map(rows, row => {
row.start = moment.unix(row.start);
return row;
});
Expand Down

0 comments on commit cc28b82

Please sign in to comment.