- attivita

- gestione degli script sul server
 - creato websocket per interagire con gli script del server.
This commit is contained in:
Surya Paolo
2024-08-29 23:30:58 +02:00
parent d527f49c5e
commit 45f601bd26
25 changed files with 534 additions and 45 deletions

View File

@@ -10,6 +10,7 @@ const { ObjectID } = require('mongodb');
const shared_consts = require('../tools/shared_nodejs');
const { Reaction } = require('./reaction');
const { MyGroup } = require('./mygroup');
const tableModel = shared_consts.TABLES_MYBACHECAS;
@@ -118,7 +119,8 @@ const MyBachecaSchema = new Schema({
type: Date,
},
},
...Reaction.getFieldsForReactions()
...Reaction.getFieldsForReactions(),
...MyGroup.getFieldsForAnnunci()
});
MyBachecaSchema.pre('save', async function (next) {