aggiornamento Indici
This commit is contained in:
@@ -170,4 +170,8 @@ NewstosentSchema.statics.isActivated = async function (_id) {
|
||||
|
||||
const Newstosent = mongoose.model('Newstosent', NewstosentSchema);
|
||||
|
||||
Newstosent.createIndexes((err) => {
|
||||
if (err) throw err;
|
||||
});
|
||||
|
||||
module.exports = { Newstosent };
|
||||
|
||||
Reference in New Issue
Block a user