c2-mongoose 2.1.294 → 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',
|
|
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',
|
|
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
package/src/flow/SearcherFlow.ts
CHANGED
|
@@ -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',
|
|
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',
|
|
230
|
+
$lte: momentValue.tz('America/Sao_Paulo', false).toDate()
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
} else if (key.endsWith('Like')) {
|