c2-mongoose 2.1.319 → 2.1.320

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.
@@ -240,10 +240,10 @@ var SearcherFlow = /** @class */ (function () {
240
240
  var fieldName = key.replace('Range', '');
241
241
  var values = value;
242
242
  if ((0, Utils_1.isNotEmpty)(values[0])) {
243
- condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $gte: values[0] });
243
+ condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $gte: Number(values[0]) });
244
244
  }
245
245
  if ((0, Utils_1.isNotEmpty)(values[1])) {
246
- condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $lte: values[1] });
246
+ condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $lte: Number(values[1]) });
247
247
  }
248
248
  }
249
249
  else if (key.endsWith('Like')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.319",
3
+ "version": "2.1.320",
4
4
  "description": "Lib to make any search in database mongoose and use as basic crud",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -219,14 +219,14 @@ class SearcherFlow<D> {
219
219
  if (isNotEmpty(values[0])) {
220
220
  condition[fieldName] = {
221
221
  ...condition[fieldName],
222
- $gte: values[0]
222
+ $gte: Number(values[0])
223
223
  }
224
224
  }
225
225
 
226
226
  if (isNotEmpty(values[1])) {
227
227
  condition[fieldName] = {
228
228
  ...condition[fieldName],
229
- $lte: values[1]
229
+ $lte: Number(values[1])
230
230
  }
231
231
  }
232
232
  } else if (key.endsWith('Like')) {