Skip to content

Commit

Permalink
Fix for on-demand markets loading
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHolyRoger committed Jul 18, 2020
1 parent 3dab34b commit f097289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ function save_tx(txid, blockheight, cb) {
}

function get_market_data(market, cb) {
if(fs.existsSync('./markets/' + market + '.js')){
if(fs.existsSync('./lib/markets/' + market + '.js')){
exMarket = require('./markets/' + market);
exMarket.get_data(settings.markets, function(err, obj){
exMarket.get_data(settings.markets.coin, settings.markets.exchange, function(err, obj){
return cb(err, obj);
});
}else{
Expand Down

0 comments on commit f097289

Please sign in to comment.