- inizio di modifiche all'editor di Pagine Web

This commit is contained in:
Surya Paolo
2025-09-05 01:06:46 +02:00
parent 7ba408c053
commit a2dd06bd68
8 changed files with 60 additions and 9 deletions

View File

@@ -257,6 +257,8 @@ const MyElemSchema = new Schema({
date_updated: {
type: Date,
},
children: { type: Array, default: undefined },
});
MyElemSchema.pre('save', async function (next) {

View File

@@ -156,6 +156,7 @@ const MyPageSchema = new Schema({
date_updated: {
type: Date,
},
sections: { type: Array },
});
MyPageSchema.statics.getFieldsForSearch = function () {