c2-mongoose 2.1.179 → 2.1.180

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.
@@ -442,7 +442,23 @@ var SearchFlow = /** @class */ (function () {
442
442
  var key = _a[0], value = _a[1];
443
443
  if ((0, Utils_1.isNotEmpty)(value)) {
444
444
  var condition = {};
445
- if (['onlyMetadata', 'projection', 'pageable', 'orderSense', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
445
+ if ([
446
+ 'onlyMetadata',
447
+ 'projection',
448
+ 'pageable',
449
+ 'orderSense',
450
+ 'orderBy',
451
+ 'properties',
452
+ 'populate',
453
+ 'page',
454
+ 'limit',
455
+ 'model',
456
+ 'select',
457
+ 'searchText',
458
+ 'sort',
459
+ 'isPageable',
460
+ 'searchPageable'
461
+ ].includes(key)) {
446
462
  return;
447
463
  }
448
464
  if (typeof value === 'string' && _this.isValidObjectId(value)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.179",
3
+ "version": "2.1.180",
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",
@@ -382,7 +382,22 @@ abstract class SearchFlow {
382
382
  Object.entries(objectSearch).forEach(([key, value]) => {
383
383
  if (isNotEmpty(value)) {
384
384
  let condition = {} as any
385
- if (['onlyMetadata', 'projection', 'pageable', 'orderSense', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
385
+ if ([
386
+ 'onlyMetadata',
387
+ 'projection',
388
+ 'pageable',
389
+ 'orderSense',
390
+ 'orderBy',
391
+ 'properties',
392
+ 'populate',
393
+ 'page',
394
+ 'limit',
395
+ 'model',
396
+ 'select',
397
+ 'searchText',
398
+ 'sort',
399
+ 'isPageable',
400
+ 'searchPageable'].includes(key)) {
386
401
  return
387
402
  }
388
403