adminmate-express-mongoose 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminmate-express-mongoose",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Adminmate Express/Mongoose connector",
5
5
  "author": "Marc Delalonde",
6
6
  "homepage": "http://adminmate.io",
@@ -119,6 +119,9 @@ const cleanString = string => {
119
119
  module.exports.cleanString = cleanString;
120
120
 
121
121
  const queryRule = rule => {
122
+ if (rule.type === 'group') {
123
+ return queryRuleSet(rule);
124
+ }
122
125
  let q = {};
123
126
  if (rule.operator === 'is') {
124
127
  q[rule.field] = { $eq: rule.value };