c2-mongoose 2.1.436 → 2.1.437

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.
@@ -87,13 +87,13 @@ var BuildConditionFlowItem = /** @class */ (function () {
87
87
  else if (key.endsWith("Minimum")) {
88
88
  key = key.replace("Minimum", "");
89
89
  condition[key] = {
90
- $gte: value
90
+ $gte: Number(value)
91
91
  };
92
92
  }
93
93
  else if (key.endsWith("Maximum")) {
94
94
  key = key.replace("Maximum", "");
95
95
  condition[key] = {
96
- $lte: value
96
+ $lte: Number(value)
97
97
  };
98
98
  }
99
99
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.436",
3
+ "version": "2.1.437",
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",
@@ -83,12 +83,12 @@ class BuildConditionFlowItem {
83
83
  } else if (key.endsWith("Minimum")) {
84
84
  key = key.replace("Minimum", "");
85
85
  condition[key] = {
86
- $gte: value
86
+ $gte: Number(value)
87
87
  };
88
88
  } else if (key.endsWith("Maximum")) {
89
89
  key = key.replace("Maximum", "");
90
90
  condition[key] = {
91
- $lte: value
91
+ $lte: Number(value)
92
92
  };
93
93
  } else {
94
94
  if (model?.schema?.paths[key]?.instance === 'Array') {