codebase-models 3.0.0 → 3.0.1
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.
|
@@ -97,5 +97,5 @@ ClientRetentionSchema.index({ viewId: 1 }, { sparse: true });
|
|
|
97
97
|
ClientRetentionSchema.index({ "retentions.active": 1 }, { partialFilterExpression: { "retentions.active": true } });
|
|
98
98
|
// Index for sorting by retainer value
|
|
99
99
|
ClientRetentionSchema.index({ "retentions.retainerValue": -1 });
|
|
100
|
-
const ClientRetention = mongoose_1.default.models.clientretention || (0, mongoose_1.model)("
|
|
100
|
+
const ClientRetention = mongoose_1.default.models.clientretention || (0, mongoose_1.model)("clientretention", ClientRetentionSchema);
|
|
101
101
|
exports.default = ClientRetention;
|
package/package.json
CHANGED
|
@@ -100,7 +100,7 @@ ClientRetentionSchema.index(
|
|
|
100
100
|
ClientRetentionSchema.index({ "retentions.retainerValue": -1 });
|
|
101
101
|
|
|
102
102
|
const ClientRetention = mongoose.models.clientretention || model<IClientRetention>(
|
|
103
|
-
"
|
|
103
|
+
"clientretention",
|
|
104
104
|
ClientRetentionSchema
|
|
105
105
|
);
|
|
106
106
|
|