Browse Source

updated to reflect @missinglink's comments

the rebase was brutal, i thought that i caught everything, thx for checking
pull/666/head
Stephen Hess 8 years ago
parent
commit
af7de7613f
  1. 1
      index.js
  2. 2
      middleware/trimByGranularity.js
  3. 2
      sanitiser/search.js

1
index.js

@ -2,6 +2,7 @@
var cluster = require('cluster'), var cluster = require('cluster'),
app = require('./app'), app = require('./app'),
port = ( process.env.PORT || 3100 ), port = ( process.env.PORT || 3100 ),
// when pelias/api#601 is done this can be changed to `true`
multicore = false; multicore = false;
/** cluster webserver across all cores **/ /** cluster webserver across all cores **/

2
middleware/trimByGranularity.js

@ -10,7 +10,7 @@ var _ = require('lodash');
// - state // - state
// //
// Because the address matched, we're not interested in city+state or state, so // Because the address matched, we're not interested in city+state or state, so
// this component removes that aren't the most granular. // this component removes results that aren't the most granular.
// layers in increasing order of granularity // layers in increasing order of granularity
var layers = [ var layers = [

2
sanitiser/search.js

@ -8,7 +8,7 @@ var sanitizeAll = require('../sanitiser/sanitizeAll'),
size: require('../sanitiser/_size')(/* use defaults*/), size: require('../sanitiser/_size')(/* use defaults*/),
layers: require('../sanitiser/_targets')('layers', type_mapping.layer_mapping), layers: require('../sanitiser/_targets')('layers', type_mapping.layer_mapping),
sources: require('../sanitiser/_targets')('sources', type_mapping.source_mapping), sources: require('../sanitiser/_targets')('sources', type_mapping.source_mapping),
// // depends on the layers and sources sanitisers, must be run after them // depends on the layers and sources sanitisers, must be run after them
sources_and_layers: require('../sanitiser/_sources_and_layers'), sources_and_layers: require('../sanitiser/_sources_and_layers'),
private: require('../sanitiser/_flag_bool')('private', false), private: require('../sanitiser/_flag_bool')('private', false),
geo_search: require('../sanitiser/_geo_search'), geo_search: require('../sanitiser/_geo_search'),

Loading…
Cancel
Save