aggiornamento Indici
This commit is contained in:
@@ -428,5 +428,9 @@ ProjectSchema.pre('save', function (next) {
|
||||
|
||||
var Project = mongoose.model('Projects', ProjectSchema);
|
||||
|
||||
Project.createIndexes((err) => {
|
||||
if (err) throw err;
|
||||
});
|
||||
|
||||
module.exports = { Project };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user