c2-mongoose 2.1.145 → 2.1.146
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
|
@@ -106,7 +106,10 @@ var SearchFlow = /** @class */ (function () {
|
|
|
106
106
|
var populate = this_1.buildPath(first, nested);
|
|
107
107
|
if (Array.isArray(this_1.select)) {
|
|
108
108
|
var selects = this_1.select.filter(function (sel) { return sel.startsWith("".concat(first, ".")); });
|
|
109
|
-
|
|
109
|
+
var select = selects.map(function (sel) { return sel.split(".")[1]; }).join(" ");
|
|
110
|
+
if ((0, Utils_1.isNotEmpty)(select)) {
|
|
111
|
+
populate.select = select;
|
|
112
|
+
}
|
|
110
113
|
}
|
|
111
114
|
populates.push(populate);
|
|
112
115
|
};
|
package/package.json
CHANGED
package/src/flow/SearchFlow.ts
CHANGED
|
@@ -82,7 +82,10 @@ abstract class SearchFlow {
|
|
|
82
82
|
let populate = this.buildPath(first, nested)
|
|
83
83
|
if (Array.isArray(this.select)) {
|
|
84
84
|
let selects = (this.select as []).filter((sel: string) => sel.startsWith(`${first}.`))
|
|
85
|
-
|
|
85
|
+
let select = selects.map((sel: string) => sel.split(".")[1]).join(" ")
|
|
86
|
+
if (isNotEmpty(select)) {
|
|
87
|
+
populate.select = select
|
|
88
|
+
}
|
|
86
89
|
}
|
|
87
90
|
populates.push(populate)
|
|
88
91
|
}
|