Browse Source

added word

pull/912/head
Stephen Hess 8 years ago
parent
commit
f9996cd6b0
  1. 2
      controller/predicates/is_only_non_admin_layers.js

2
controller/predicates/is_only_non_admin_layers.js

@ -1,6 +1,6 @@
const _ = require('lodash');
// return IFF req.clean.layers is empty OR there are non-venue/address/street layers
// return true IFF req.clean.layers is empty OR there are non-venue/address/street layers
module.exports = (req, res) => (
!_.isEmpty(_.get(req, 'clean.layers', [])) &&
_.isEmpty(_.difference(req.clean.layers, ['venue', 'address', 'street']))

Loading…
Cancel
Save