c2-mongoose 2.1.294 → 2.1.296

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.
@@ -223,14 +223,14 @@ var SearcherFlow = /** @class */ (function () {
223
223
  momentValue.hour(0);
224
224
  momentValue.minute(0);
225
225
  momentValue.second(0);
226
- condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $gte: momentValue.tz('America/Sao_Paulo', true).toDate() });
226
+ condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $gte: momentValue.tz('America/Sao_Paulo', false).toDate() });
227
227
  }
228
228
  if ((0, Utils_1.isNotEmpty)(values[1])) {
229
229
  var momentValue = (0, moment_1.default)(values[1]);
230
230
  momentValue.hour(23);
231
231
  momentValue.minute(59);
232
232
  momentValue.second(59);
233
- condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $lte: momentValue.tz('America/Sao_Paulo', true).toDate() });
233
+ condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $lte: momentValue.tz('America/Sao_Paulo', false).toDate() });
234
234
  }
235
235
  }
236
236
  else if (key.endsWith('DateTimeRange')) {
@@ -241,14 +241,14 @@ var SearcherFlow = /** @class */ (function () {
241
241
  // momentValue.hour(0)
242
242
  // momentValue.minute(0)
243
243
  // momentValue.second(0)
244
- condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $gte: momentValue.tz('America/Sao_Paulo', true).toDate() });
244
+ condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $gte: momentValue.tz('America/Sao_Paulo', false).toDate() });
245
245
  }
246
246
  if ((0, Utils_1.isNotEmpty)(values[1])) {
247
247
  var momentValue = (0, moment_1.default)(values[1]);
248
248
  // momentValue.hour(23)
249
249
  // momentValue.minute(59)
250
250
  // momentValue.second(59)
251
- condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $lte: momentValue.tz('America/Sao_Paulo', true).toDate() });
251
+ condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $lte: momentValue.tz('America/Sao_Paulo', false).toDate() });
252
252
  }
253
253
  }
254
254
  else if (key.endsWith('Like')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.294",
3
+ "version": "2.1.296",
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",
@@ -192,7 +192,7 @@ class SearcherFlow<D> {
192
192
  momentValue.second(0)
193
193
  condition[fieldName] = {
194
194
  ...condition[fieldName],
195
- $gte: momentValue.tz('America/Sao_Paulo', true).toDate()
195
+ $gte: momentValue.tz('America/Sao_Paulo', false).toDate()
196
196
  }
197
197
  }
198
198
 
@@ -203,7 +203,7 @@ class SearcherFlow<D> {
203
203
  momentValue.second(59)
204
204
  condition[fieldName] = {
205
205
  ...condition[fieldName],
206
- $lte: momentValue.tz('America/Sao_Paulo', true).toDate()
206
+ $lte: momentValue.tz('America/Sao_Paulo', false).toDate()
207
207
  }
208
208
  }
209
209
  } else if (key.endsWith('DateTimeRange')) {
@@ -216,7 +216,7 @@ class SearcherFlow<D> {
216
216
  // momentValue.second(0)
217
217
  condition[fieldName] = {
218
218
  ...condition[fieldName],
219
- $gte: momentValue.tz('America/Sao_Paulo', true).toDate()
219
+ $gte: momentValue.tz('America/Sao_Paulo', false).toDate()
220
220
  }
221
221
  }
222
222
 
@@ -227,7 +227,7 @@ class SearcherFlow<D> {
227
227
  // momentValue.second(59)
228
228
  condition[fieldName] = {
229
229
  ...condition[fieldName],
230
- $lte: momentValue.tz('America/Sao_Paulo', true).toDate()
230
+ $lte: momentValue.tz('America/Sao_Paulo', false).toDate()
231
231
  }
232
232
  }
233
233
  } else if (key.endsWith('Like')) {