fix: missing await

This commit is contained in:
Barış Soner Uşaklı
2020-05-12 12:18:30 -04:00
parent 28df9abadd
commit 97c086aba9
2 changed files with 15 additions and 1 deletions

View File

@@ -236,7 +236,7 @@ Categories.getChildrenCids = async function (rootCid) {
}
keys = childrenCids.map(cid => 'cid:' + cid + ':children');
childrenCids.forEach(cid => allCids.push(parseInt(cid, 10)));
recursive(keys);
await recursive(keys);
}
const key = 'cid:' + rootCid + ':children';
const childrenCids = cache.get(key);