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 +1 -1
- package/src/helpers/functions.js +3 -0
package/package.json
CHANGED
package/src/helpers/functions.js
CHANGED
|
@@ -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 };
|