c2-mongoose 2.1.346 → 2.1.347

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.
@@ -230,9 +230,9 @@ var SearcherFlow = /** @class */ (function () {
230
230
  }
231
231
  if ((0, Utils_1.isNotEmpty)(values[1])) {
232
232
  var momentValue = (0, moment_1.default)(values[1]);
233
- // momentValue.hour(23)
234
- // momentValue.minute(59)
235
- // momentValue.second(59)
233
+ momentValue.hour(23);
234
+ momentValue.minute(59);
235
+ momentValue.second(59);
236
236
  condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $lte: momentValue.tz('America/Sao_Paulo', false).toDate() });
237
237
  }
238
238
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.346",
3
+ "version": "2.1.347",
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",
@@ -205,9 +205,9 @@ class SearcherFlow<D> {
205
205
 
206
206
  if (isNotEmpty(values[1])) {
207
207
  var momentValue = moment(values[1])
208
- // momentValue.hour(23)
209
- // momentValue.minute(59)
210
- // momentValue.second(59)
208
+ momentValue.hour(23)
209
+ momentValue.minute(59)
210
+ momentValue.second(59)
211
211
  condition[fieldName] = {
212
212
  ...condition[fieldName],
213
213
  $lte: momentValue.tz('America/Sao_Paulo', false).toDate()