c2-mongoose 2.1.293 → 2.1.295

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.
@@ -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')) {
@@ -391,7 +391,6 @@ var SearcherFlow = /** @class */ (function () {
391
391
  _loop_1(clauseOr);
392
392
  }
393
393
  }
394
- console.log(orPayload);
395
394
  var filtersFinal = __assign({}, andQueriesParam);
396
395
  if (orPayload.length > 0) {
397
396
  if (!filtersFinal.$or)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.293",
3
+ "version": "2.1.295",
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",
@@ -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')) {
@@ -374,8 +374,6 @@ class SearcherFlow<D> {
374
374
  }
375
375
  }
376
376
 
377
- console.log(orPayload)
378
-
379
377
  let filtersFinal = { ...andQueriesParam } as any
380
378
 
381
379
  if (orPayload.length > 0) {