Browse Source

added comments for compound predicate

query-for-venues-on-admin-only
Stephen Hess 7 years ago
parent
commit
d5afe944c9
  1. 6
      routes/v1.js

6
routes/v1.js

@ -261,6 +261,12 @@ function addRoutes(app, peliasConfig) {
) )
); );
// search for venues under the following conditions:
// - there are no request errors
// - analysis is only admin (no address, query, or street)
// - there's a single field in analysis
// - request has a focus.point available
// https://github.com/pelias/pelias/issues/564
const venuesSearchShouldExecute = all( const venuesSearchShouldExecute = all(
not(hasRequestErrors), not(hasRequestErrors),
isAdminOnlyAnalysis, isAdminOnlyAnalysis,

Loading…
Cancel
Save