diff --git a/controller/predicates/is_request_sources_includes_whosonfirst.js b/controller/predicates/is_request_sources_includes_whosonfirst.js index 0f43921b..fe3fcd8b 100644 --- a/controller/predicates/is_request_sources_includes_whosonfirst.js +++ b/controller/predicates/is_request_sources_includes_whosonfirst.js @@ -5,8 +5,7 @@ const stackTraceLine = require('../../helper/stackTraceLine'); // returns true IFF 'whosonfirst' is included in the requested sources module.exports = (req, res) => { - const is_request_sources_includes_whosonfirst = _.includes( - _.get(req, 'clean.sources', []), + const is_request_sources_includes_whosonfirst = _.get(req, 'clean.sources', []).includes( 'whosonfirst' ); debugLog.push(req, () => ({