c2-mongoose 2.1.196 → 2.1.197

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.
@@ -483,14 +483,14 @@ var SearchFlow = /** @class */ (function () {
483
483
  momentValue.hour(0);
484
484
  momentValue.minute(0);
485
485
  momentValue.second(0);
486
- condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $gte: momentValue.tz('America/Sao_Paulo', false).toDate() });
486
+ condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $gte: momentValue.tz('America/Sao_Paulo', true).toDate() });
487
487
  }
488
488
  if ((0, Utils_1.isNotEmpty)(values[1])) {
489
489
  var momentValue = (0, moment_timezone_1.default)(values[1]);
490
490
  momentValue.hour(23);
491
491
  momentValue.minute(59);
492
492
  momentValue.second(59);
493
- condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $lte: momentValue.tz('America/Sao_Paulo', false).toDate() });
493
+ condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $lte: momentValue.tz('America/Sao_Paulo', true).toDate() });
494
494
  }
495
495
  filters.$and.push(condition);
496
496
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.196",
3
+ "version": "2.1.197",
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",
@@ -429,7 +429,7 @@ abstract class SearchFlow {
429
429
  momentValue.second(0)
430
430
  condition[fieldName] = {
431
431
  ...condition[fieldName],
432
- $gte: momentValue.tz('America/Sao_Paulo', false).toDate()
432
+ $gte: momentValue.tz('America/Sao_Paulo', true).toDate()
433
433
  }
434
434
  }
435
435
 
@@ -440,7 +440,7 @@ abstract class SearchFlow {
440
440
  momentValue.second(59)
441
441
  condition[fieldName] = {
442
442
  ...condition[fieldName],
443
- $lte: momentValue.tz('America/Sao_Paulo', false).toDate()
443
+ $lte: momentValue.tz('America/Sao_Paulo', true).toDate()
444
444
  }
445
445
  }
446
446
  filters.$and.push(condition)