Browse Source

Fix relativeScore config value setting

pull/219/head
Diana Shkolnikov 9 years ago
parent
commit
d9cb96dad2
  1. 2
      middleware/confidenceScore.js

2
middleware/confidenceScore.js

@ -17,7 +17,7 @@ var logger = require('pelias-logger').get('api');
var RELATIVE_SCORES = true;
function setup(peliasConfig) {
RELATIVE_SCORES = peliasConfig.relativeScores || true;
RELATIVE_SCORES = peliasConfig.hasOwnProperty('relativeScores') ? peliasConfig.relativeScores : true;
return computeScores;
}

Loading…
Cancel
Save