c2-mongoose 2.1.242 → 2.1.243

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.
@@ -64,7 +64,7 @@ var BuildPopulateSingleFlowItem = /** @class */ (function () {
64
64
  var _a;
65
65
  if (nested === void 0) { nested = ""; }
66
66
  if (populateAcc.path === undefined) {
67
- populateAcc.path = "";
67
+ populateAcc.path = target;
68
68
  }
69
69
  else if (!((_a = populateAcc.path) === null || _a === void 0 ? void 0 : _a.includes(target))) {
70
70
  populateAcc.path += " ".concat(target).trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-mongoose",
3
- "version": "2.1.242",
3
+ "version": "2.1.243",
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",
@@ -56,7 +56,7 @@ class BuildPopulateSingleFlowItem {
56
56
  // var populate = {} as IPopulate
57
57
 
58
58
  if (populateAcc.path === undefined) {
59
- populateAcc.path = ``
59
+ populateAcc.path = target
60
60
  } else if (!populateAcc.path?.includes(target)){
61
61
  populateAcc.path += ` ${target}`.trim()
62
62
  }