c2-mongoose 2.1.175 → 2.1.177
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
|
@@ -186,7 +186,12 @@ var SearchFlow = /** @class */ (function () {
|
|
|
186
186
|
{
|
|
187
187
|
$facet: facet
|
|
188
188
|
},
|
|
189
|
-
]
|
|
189
|
+
], {
|
|
190
|
+
collation: {
|
|
191
|
+
locale: "pt",
|
|
192
|
+
numericOrdering: true
|
|
193
|
+
}
|
|
194
|
+
}).session(options === null || options === void 0 ? void 0 : options.session)];
|
|
190
195
|
case 1:
|
|
191
196
|
result = _d.sent();
|
|
192
197
|
if (!((0, Utils_1.isNotEmpty)(this.populate) && Array.isArray(this.populate))) return [3 /*break*/, 5];
|
|
@@ -264,7 +269,7 @@ var SearchFlow = /** @class */ (function () {
|
|
|
264
269
|
], {
|
|
265
270
|
collation: {
|
|
266
271
|
locale: "pt",
|
|
267
|
-
|
|
272
|
+
numericOrdering: true
|
|
268
273
|
}
|
|
269
274
|
}).session(options === null || options === void 0 ? void 0 : options.session)];
|
|
270
275
|
case 1:
|
package/package.json
CHANGED
package/src/flow/SearchFlow.ts
CHANGED
|
@@ -167,7 +167,12 @@ abstract class SearchFlow {
|
|
|
167
167
|
{
|
|
168
168
|
$facet: facet
|
|
169
169
|
},
|
|
170
|
-
]
|
|
170
|
+
], {
|
|
171
|
+
collation: {
|
|
172
|
+
locale: "pt",
|
|
173
|
+
numericOrdering: true
|
|
174
|
+
}
|
|
175
|
+
}
|
|
171
176
|
).session(options?.session as ClientSession)
|
|
172
177
|
|
|
173
178
|
if (isNotEmpty(this.populate) && Array.isArray(this.populate)) {
|
|
@@ -241,7 +246,7 @@ abstract class SearchFlow {
|
|
|
241
246
|
], {
|
|
242
247
|
collation: {
|
|
243
248
|
locale: "pt",
|
|
244
|
-
|
|
249
|
+
numericOrdering: true
|
|
245
250
|
}
|
|
246
251
|
}).session(options?.session as ClientSession)
|
|
247
252
|
|