@cool-digital-solutions/interferir-models 1.4.59 → 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
|
-
|
|
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;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const mongoose_1 = require("mongoose");
|
|
7
7
|
const express_http_context_1 = __importDefault(require("express-http-context"));
|
|
8
8
|
const _config_1 = require("../config");
|
|
9
|
-
const pricing_company_analysis_plan_type_1 = require("
|
|
9
|
+
const pricing_company_analysis_plan_type_1 = require("../types/pricing-company-analysis-plan.type");
|
|
10
10
|
const PricingCompanyAnalysisPlanSchema = new mongoose_1.Schema({
|
|
11
11
|
projectAnalysis: [{ type: mongoose_1.Schema.Types.ObjectId, ref: 'PricingProjectAnalysis', required: true }],
|
|
12
12
|
totalCredit: { type: Number, required: true, min: 0 },
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const mongoose_1 = require("mongoose");
|
|
7
7
|
const express_http_context_1 = __importDefault(require("express-http-context"));
|
|
8
8
|
const _config_1 = require("../config");
|
|
9
|
-
const pricing_company_analysis_plan_type_1 = require("
|
|
9
|
+
const pricing_company_analysis_plan_type_1 = require("../types/pricing-company-analysis-plan.type");
|
|
10
10
|
const PricingProjectAnalysisSchema = new mongoose_1.Schema({
|
|
11
11
|
strategyHouseId: { type: mongoose_1.Schema.Types.ObjectId, required: true }, // from third api Strategy House ID
|
|
12
12
|
strategyHouseSnapshot: {
|