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