Browse Source

added comments and whitespace

query-for-venues-on-admin-only
Stephen Hess 7 years ago
parent
commit
3e02a0c909
  1. 3
      controller/predicates/has_results_at_layers.js
  2. 11453
      package-lock.json

3
controller/predicates/has_results_at_layers.js

@ -23,13 +23,16 @@ module.exports = {
stack_trace: stackTraceLine() stack_trace: stackTraceLine()
})); }));
return has_results_at_any_layer; return has_results_at_any_layer;
}; };
}, },
all(layers) { all(layers) {
return (request, response) => { return (request, response) => {
const has_results_at_all_layers = _.isEmpty( const has_results_at_all_layers = _.isEmpty(
_.difference( _.difference(
// get all layers of all the results into an array
_.map(response.data, _.property('layer')), _.map(response.data, _.property('layer')),
// convert layers to an array if it isn't already one
_.castArray(layers) _.castArray(layers)
) )
); );

11453
package-lock.json generated

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save