@cool-digital-solutions/interferir-models 1.4.60 → 1.4.61

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.
@@ -270,6 +270,8 @@ const customCollation = {
270
270
  locale: 'en',
271
271
  };
272
272
  model_indexes_1.INDEX.forEach((indexField) => {
273
- companySchema.index(indexField, { collation: customCollation });
273
+ const isTextIndex = Object.values(indexField).some((val) => val === 'text');
274
+ const options = isTextIndex ? {} : { collation: customCollation };
275
+ companySchema.index(indexField, options);
274
276
  });
275
277
  exports.default = companySchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cool-digital-solutions/interferir-models",
3
- "version": "1.4.60",
3
+ "version": "1.4.61",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"