c2-mongoose 2.1.178 → 2.1.179
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
|
@@ -438,7 +438,7 @@ var SearchFlow = /** @class */ (function () {
|
|
|
438
438
|
SearchFlow.prototype.buildDefaultFilters = function (objectSearch) {
|
|
439
439
|
var _this = this;
|
|
440
440
|
var filters = { $and: [] };
|
|
441
|
-
Object.entries(objectSearch
|
|
441
|
+
Object.entries(objectSearch).forEach(function (_a) {
|
|
442
442
|
var key = _a[0], value = _a[1];
|
|
443
443
|
if ((0, Utils_1.isNotEmpty)(value)) {
|
|
444
444
|
var condition = {};
|
package/package.json
CHANGED
package/src/flow/SearchFlow.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { SearchOptions, SearchResponse } from "../types/SearchResponse"
|
|
|
4
4
|
import { isEmpty, isNotEmpty } from "../utils/Utils"
|
|
5
5
|
|
|
6
6
|
abstract class SearchFlow {
|
|
7
|
+
[key: string]: any
|
|
7
8
|
searchText: string
|
|
8
9
|
orderSense: string
|
|
9
10
|
orderBy: string
|
|
@@ -378,7 +379,7 @@ abstract class SearchFlow {
|
|
|
378
379
|
|
|
379
380
|
public buildDefaultFilters(objectSearch: any) {
|
|
380
381
|
let filters = { $and: [] } as any
|
|
381
|
-
Object.entries(objectSearch
|
|
382
|
+
Object.entries(objectSearch).forEach(([key, value]) => {
|
|
382
383
|
if (isNotEmpty(value)) {
|
|
383
384
|
let condition = {} as any
|
|
384
385
|
if (['onlyMetadata', 'projection', 'pageable', 'orderSense', 'orderBy', 'properties', 'populate', 'page', 'limit', 'model', 'select', 'searchText', 'isPageable', 'searchPageable'].includes(key)) {
|