Fixed bug

This commit is contained in:
dbroqua 2019-04-11 12:34:20 +02:00
parent b18612205a
commit c6b8219d1e

View file

@ -8,7 +8,7 @@ class VegetableTypes {
['name', 'ASC'] ['name', 'ASC']
], ],
include: [{ include: [{
model: models.Vegetables, model: models.vegetables,
as: 'Vegetables', as: 'Vegetables',
order: [ order: [
['name', 'ASC'] ['name', 'ASC']
@ -42,7 +42,7 @@ class VegetableTypes {
req.params.vegetableTypesId, req.params.vegetableTypesId,
{ {
include: [{ include: [{
model: models.Vegetables, model: models.vegetables,
as: 'Vegetables', as: 'Vegetables',
order: [ order: [
['name', 'ASC'] ['name', 'ASC']