c2-mongoose 2.1.440 → 2.1.442
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.
|
@@ -76,7 +76,7 @@ var GroupV3FlowItem = /** @class */ (function () {
|
|
|
76
76
|
groupsClauses.push(projectClause);
|
|
77
77
|
if (detailed && (filters === null || filters === void 0 ? void 0 : filters.orderBy)) {
|
|
78
78
|
var orderBy = Array.isArray(filters.orderBy) ? filters.orderBy : [filters.orderBy];
|
|
79
|
-
var docOrderBy = orderBy.filter(function (o) { return typeof o === 'string' && o.startsWith('
|
|
79
|
+
var docOrderBy = orderBy.filter(function (o) { return typeof o === 'string' && o.startsWith('docs.'); });
|
|
80
80
|
var sortByFields = {};
|
|
81
81
|
for (var _i = 0, docOrderBy_1 = docOrderBy; _i < docOrderBy_1.length; _i++) {
|
|
82
82
|
var o = docOrderBy_1[_i];
|
package/package.json
CHANGED
|
@@ -81,7 +81,7 @@ class GroupV3FlowItem {
|
|
|
81
81
|
|
|
82
82
|
if (detailed && filters?.orderBy) {
|
|
83
83
|
const orderBy = Array.isArray(filters.orderBy) ? filters.orderBy : [filters.orderBy]
|
|
84
|
-
const docOrderBy = orderBy.filter((o: string) => typeof o === 'string' && o.startsWith('
|
|
84
|
+
const docOrderBy = orderBy.filter((o: string) => typeof o === 'string' && o.startsWith('docs.'))
|
|
85
85
|
const sortByFields: Record<string, 1 | -1> = {}
|
|
86
86
|
for (const o of docOrderBy) {
|
|
87
87
|
sortByFields[o.replace(/^doc\./, '')] = filters.orderSense === 'desc' ? -1 : 1
|