mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
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:
committed by
GitHub
parent
6cebc7f069
commit
4d9bc30d1f
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user