From d9cb96dad22e7df0764b71992b95bd16d0ecf20c Mon Sep 17 00:00:00 2001 From: Diana Shkolnikov Date: Fri, 4 Sep 2015 11:39:40 -0400 Subject: [PATCH] Fix relativeScore config value setting --- middleware/confidenceScore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/confidenceScore.js b/middleware/confidenceScore.js index ade6f4fe..ef27b1e5 100644 --- a/middleware/confidenceScore.js +++ b/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; }