c2-mongoose 2.1.175 → 2.1.176

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