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