@azteam/express 1.2.439 → 1.2.440

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.
@@ -127,6 +127,10 @@ function _default() {
127
127
  req.query[_newKey] = _objectSpread(_objectSpread({}, req.query[_newKey]), {}, {
128
128
  $lte: value
129
129
  });
130
+ } else if (value.includes(',')) {
131
+ req.query[key] = {
132
+ $in: value.split(',')
133
+ };
130
134
  }
131
135
  if (!options.allowSearchFields.includes(key)) {
132
136
  throw new _error.ErrorException(_error.INVALID, [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.439",
3
+ "version": "1.2.440",
4
4
  "license": "MIT",
5
5
  "author": "toda <sp.azsolution.net@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -112,6 +112,10 @@ export default function (opts = {}) {
112
112
  ...req.query[newKey],
113
113
  $lte: value,
114
114
  };
115
+ } else if (value.includes(',')) {
116
+ req.query[key] = {
117
+ $in: value.split(','),
118
+ };
115
119
  }
116
120
 
117
121
  if (!options.allowSearchFields.includes(key)) {