@likewatt/models 1.57.6 → 1.57.7
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/core/Scenario.js +5 -1
- package/package.json +1 -1
package/dist/core/Scenario.js
CHANGED
|
@@ -677,7 +677,11 @@ __decorate([
|
|
|
677
677
|
__metadata("design:type", Boolean)
|
|
678
678
|
], ScenarioType.prototype, "isLeads", void 0);
|
|
679
679
|
exports.ScenarioType = ScenarioType = __decorate([
|
|
680
|
-
(0, mongoose_1.Schema)(
|
|
680
|
+
(0, mongoose_1.Schema)({
|
|
681
|
+
timestamps: true,
|
|
682
|
+
toJSON: { virtuals: true, versionKey: false },
|
|
683
|
+
toObject: { virtuals: true, versionKey: false },
|
|
684
|
+
})
|
|
681
685
|
], ScenarioType);
|
|
682
686
|
exports.ScenarioTypeSchema = mongoose_1.SchemaFactory.createForClass(ScenarioType);
|
|
683
687
|
// Hook pre-save pour générer automatiquement un UUID si _id n'est pas fourni
|