feat: async3 upgrade (#7639)

* feat: async3 upgrade WIP

* fix: async.doWhilst

* fix: async early exit

* fix: psql doUntil

* fix: psql again
This commit is contained in:
Barış Soner Uşaklı
2019-05-30 14:36:33 -04:00
committed by GitHub
parent 6cebc7f069
commit 4d9bc30d1f
15 changed files with 35 additions and 32 deletions

View File

@@ -156,8 +156,8 @@ helpers.redirect = function (res, url) {
helpers.buildCategoryBreadcrumbs = function (cid, callback) {
var breadcrumbs = [];
async.whilst(function () {
return parseInt(cid, 10);
async.whilst(function (next) {
next(null, parseInt(cid, 10));
}, function (next) {
categories.getCategoryFields(cid, ['name', 'slug', 'parentCid', 'disabled', 'isSection'], function (err, data) {
if (err) {