c2-mongoose 2.1.169 → 2.1.171
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.
package/dist/flow/SearchFlow.js
CHANGED
|
@@ -432,7 +432,7 @@ var SearchFlow = /** @class */ (function () {
|
|
|
432
432
|
var key = _a[0], value = _a[1];
|
|
433
433
|
if ((0, Utils_1.isNotEmpty)(value)) {
|
|
434
434
|
var condition = {};
|
|
435
|
-
if (['projection', 'pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
|
|
435
|
+
if (['onlyMetadata', 'projection', 'pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
|
|
436
436
|
return;
|
|
437
437
|
}
|
|
438
438
|
if (typeof value === 'string' && _this.isValidObjectId(value)) {
|
|
@@ -452,7 +452,7 @@ var SearchFlow = /** @class */ (function () {
|
|
|
452
452
|
momentValue.hour(0);
|
|
453
453
|
momentValue.minute(0);
|
|
454
454
|
momentValue.second(0);
|
|
455
|
-
condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $
|
|
455
|
+
condition[fieldName] = __assign(__assign({}, condition[fieldName]), { $gt: momentValue.toDate() });
|
|
456
456
|
}
|
|
457
457
|
if ((0, Utils_1.isNotEmpty)(values[1])) {
|
|
458
458
|
var momentValue = (0, moment_1.default)(values[1]);
|
|
@@ -506,7 +506,7 @@ var SearchFlow = /** @class */ (function () {
|
|
|
506
506
|
if (key.endsWith('Like')) {
|
|
507
507
|
return;
|
|
508
508
|
}
|
|
509
|
-
if (['onlyMetadata', 'pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
|
|
509
|
+
if (['onlyMetadata', 'projection', 'pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
|
|
510
510
|
return;
|
|
511
511
|
}
|
|
512
512
|
if ((0, Utils_1.isNotEmpty)(value)) {
|
package/package.json
CHANGED
package/src/flow/SearchFlow.ts
CHANGED
|
@@ -372,7 +372,7 @@ abstract class SearchFlow {
|
|
|
372
372
|
Object.entries(objectSearch.model).forEach(([key, value]) => {
|
|
373
373
|
if (isNotEmpty(value)) {
|
|
374
374
|
let condition = {} as any
|
|
375
|
-
if (['projection', 'pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
|
|
375
|
+
if (['onlyMetadata', 'projection', 'pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
|
|
376
376
|
return
|
|
377
377
|
}
|
|
378
378
|
|
|
@@ -398,7 +398,7 @@ abstract class SearchFlow {
|
|
|
398
398
|
momentValue.second(0)
|
|
399
399
|
condition[fieldName] = {
|
|
400
400
|
...condition[fieldName],
|
|
401
|
-
$
|
|
401
|
+
$gt: momentValue.toDate()
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
|
|
@@ -456,7 +456,7 @@ abstract class SearchFlow {
|
|
|
456
456
|
if (key.endsWith('Like')) {
|
|
457
457
|
return
|
|
458
458
|
}
|
|
459
|
-
if (['onlyMetadata', 'pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
|
|
459
|
+
if (['onlyMetadata', 'projection', 'pageable', 'order', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
|
|
460
460
|
return
|
|
461
461
|
}
|
|
462
462
|
if (isNotEmpty(value)) {
|