c2-mongoose 2.1.67 → 2.1.68

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.
@@ -121,7 +121,7 @@ var SearchFlow = /** @class */ (function () {
121
121
  return;
122
122
  }
123
123
  if (Array.isArray(this.populate)) {
124
- return undefined;
124
+ return this.buildPopulateArray();
125
125
  }
126
126
  var propertiesArray = this.populate.toString().split(',');
127
127
  var populates = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.67",
3
+ "version": "2.1.68",
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",
@@ -50,7 +50,7 @@ abstract class SearchFlow {
50
50
  }
51
51
 
52
52
  if (Array.isArray(this.populate)) {
53
- return undefined
53
+ return this.buildPopulateArray()
54
54
  }
55
55
 
56
56
  var propertiesArray = (this.populate as string).toString().split(',')