c2-mongoose 2.1.49 → 2.1.50

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.
@@ -177,7 +177,7 @@ var SearchFlow = /** @class */ (function () {
177
177
  case 1:
178
178
  result = _a.sent();
179
179
  return [2 /*return*/, {
180
- items: result[0],
180
+ items: result[0].items,
181
181
  paging: result[0].paging[0]
182
182
  }];
183
183
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.49",
3
+ "version": "2.1.50",
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",
@@ -104,7 +104,7 @@ abstract class SearchFlow {
104
104
  ]
105
105
  )
106
106
  return {
107
- items: result[0],
107
+ items: result[0].items,
108
108
  paging: result[0].paging[0]
109
109
  }
110
110
  }