aggiornamento Indici
This commit is contained in:
@@ -50,4 +50,9 @@ CategorySchema.statics.findAllIdApp = async function (idapp) {
|
||||
|
||||
const Category = mongoose.model('Category', CategorySchema);
|
||||
|
||||
Category.createIndexes((err) => {
|
||||
if (err) throw err;
|
||||
});
|
||||
|
||||
|
||||
module.exports = { Category };
|
||||
|
||||
Reference in New Issue
Block a user