mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +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
@@ -362,8 +362,8 @@ Messaging.hasPrivateChat = function (uid, withUid, callback) {
|
||||
|
||||
var index = 0;
|
||||
var roomId = 0;
|
||||
async.whilst(function () {
|
||||
return index < roomIds.length && !roomId;
|
||||
async.whilst(function (next) {
|
||||
next(null, index < roomIds.length && !roomId);
|
||||
}, function (next) {
|
||||
Messaging.getUserCountInRoom(roomIds[index], function (err, count) {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user