This commit is contained in:
dbroqua 2019-04-11 13:13:01 +02:00
parent f67c8e0167
commit b2cccada23

View file

@ -31,6 +31,7 @@ class VegetableTypes {
let k = 0 let k = 0
for (k = 0; k < vegetables.length; k += 1) { for (k = 0; k < vegetables.length; k += 1) {
if (type.Vegetables[j].name < vegetables[k]) { if (type.Vegetables[j].name < vegetables[k]) {
console.log('Break at:', k)
break break
} }
} }
@ -41,7 +42,7 @@ class VegetableTypes {
res.push(type) res.push(type)
} }
callback(null, { count: items.count, rows: res }) callback(null, { count: res.length, rows: res })
}) })
.catch((e) => { .catch((e) => {
console.log('ERR:', e) console.log('ERR:', e)