Debug
This commit is contained in:
parent
f67c8e0167
commit
b2cccada23
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue