c2-mongoose 2.1.17 → 2.1.18

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.
@@ -253,7 +253,7 @@ var SearchFlow = /** @class */ (function () {
253
253
  var values = value;
254
254
  if ((0, Utils_1.isNotEmpty)(values[0])) {
255
255
  var momentValue = (0, moment_1.default)(values[0]);
256
- condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $gte: momentValue.toDate() });
256
+ condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $gte: momentValue.toDate().setHours(0, 0, 0) });
257
257
  }
258
258
  if ((0, Utils_1.isNotEmpty)(values[1])) {
259
259
  var momentValue = (0, moment_1.default)(values[1]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.17",
3
+ "version": "2.1.18",
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",
@@ -177,7 +177,7 @@ abstract class SearchFlow {
177
177
  var momentValue = moment(values[0])
178
178
  condition[fieldName] = {
179
179
  ...condition[fieldName],
180
- $gte: momentValue.toDate()
180
+ $gte: momentValue.toDate().setHours(0, 0, 0)
181
181
  }
182
182
  }
183
183