From c6b8219d1ec08153210c92ff000ff9da8e952deb Mon Sep 17 00:00:00 2001 From: dbroqua Date: Thu, 11 Apr 2019 12:34:20 +0200 Subject: [PATCH] Fixed bug --- middleware/VegetableTypes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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']