diff --git a/middleware/VegetableTypes.js b/middleware/VegetableTypes.js index e45821f..cd98dd3 100644 --- a/middleware/VegetableTypes.js +++ b/middleware/VegetableTypes.js @@ -8,7 +8,7 @@ class VegetableTypes { ['name', 'ASC'] ], include: [{ - model: models.Vegetables, + model: models.vegetables, as: 'Vegetables', order: [ ['name', 'ASC'] @@ -42,7 +42,7 @@ class VegetableTypes { req.params.vegetableTypesId, { include: [{ - model: models.Vegetables, + model: models.vegetables, as: 'Vegetables', order: [ ['name', 'ASC']