c2-mongoose 2.1.411 → 2.1.413

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.
@@ -88,7 +88,7 @@ var SearcherV3Flow = /** @class */ (function () {
88
88
  { $skip: (params.page - 1) * (params.limit) },
89
89
  { $limit: params.limit }
90
90
  ], false);
91
- pipelineFacetPaging = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], GroupFlowItem_1.default.execute(params.groupBy, params.sumFields, params.groupDetailed, model), true), PopulateFlowItem_1.default.execute(params.populate, model), true), MatchFlowItem_1.default.execute(params, model), true), BuildPaginationDataFlowItem_1.default.execute(params.page, params.limit), true);
91
+ pipelineFacetPaging = __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], pipelineFacetItems, true), GroupFlowItem_1.default.execute(params.groupBy, params.sumFields, params.groupDetailed, model), true), PopulateFlowItem_1.default.execute(params.populate, model), true), MatchFlowItem_1.default.execute(params, model), true), BuildPaginationDataFlowItem_1.default.execute(params.page, params.limit), true);
92
92
  facet.paging = pipelineFacetPaging;
93
93
  }
94
94
  facet.items = pipelineFacetItems;
@@ -18,7 +18,7 @@ var BuildConditionSearchTextFlowItem = /** @class */ (function () {
18
18
  var regex = BuildRegexFlowItem_1.default.exec(filters.searchText);
19
19
  for (var _i = 0, camposString_1 = camposString; _i < camposString_1.length; _i++) {
20
20
  var fieldString = camposString_1[_i];
21
- if (((_a = model.schema.path(fieldString)) === null || _a === void 0 ? void 0 : _a.instance) === "ObjectID") {
21
+ if (((_a = model.schema.path(fieldString)) === null || _a === void 0 ? void 0 : _a.instance) === "ObjectId") {
22
22
  var conditionAux_1 = {};
23
23
  conditionAux_1["$expr"] = {
24
24
  "$regexMatch": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.411",
3
+ "version": "2.1.413",
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",
@@ -48,6 +48,7 @@ class SearcherV3Flow {
48
48
  ]
49
49
 
50
50
  pipelineFacetPaging = [
51
+ ...pipelineFacetItems,
51
52
  ...GroupFlowItem.execute(params.groupBy, params.sumFields, params.groupDetailed, model),
52
53
  ...PopulateFlowItem.execute(params.populate, model),
53
54
  ...MatchFlowItem.execute(params, model),
@@ -14,7 +14,7 @@ class BuildConditionSearchTextFlowItem {
14
14
 
15
15
  for (let fieldString of camposString) {
16
16
 
17
- if (model.schema.path(fieldString)?.instance === "ObjectID") {
17
+ if (model.schema.path(fieldString)?.instance === "ObjectId") {
18
18
  let conditionAux: { [key: string]: any } = {}
19
19
  conditionAux["$expr"] = {
20
20
  "$regexMatch": {