forked from GitHub/dbot
whoopsies
This commit is contained in:
parent
3e8ba74459
commit
570239cccf
@ -30,9 +30,11 @@ var pages = function(dbot) {
|
|||||||
|
|
||||||
async.eachSeries(userCount, function(userCount, next) {
|
async.eachSeries(userCount, function(userCount, next) {
|
||||||
dbot.api.users.getUser(userCount.id, function(user) {
|
dbot.api.users.getUser(userCount.id, function(user) {
|
||||||
userCount['name'] = user.primaryNick;
|
if(user) {
|
||||||
users.push(userCount);
|
userCount['name'] = user.primaryNick;
|
||||||
next();
|
users.push(userCount);
|
||||||
|
next();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}, function() {
|
}, function() {
|
||||||
res.render('channels', {
|
res.render('channels', {
|
||||||
@ -49,8 +51,6 @@ var pages = function(dbot) {
|
|||||||
user = req.user,
|
user = req.user,
|
||||||
notifies = this.pending[user.id];
|
notifies = this.pending[user.id];
|
||||||
|
|
||||||
async.eachSeries
|
|
||||||
|
|
||||||
res.render('missing_notifies', {
|
res.render('missing_notifies', {
|
||||||
'user': user.primaryNick,
|
'user': user.primaryNick,
|
||||||
'notifies': _.sortBy(notifies, 'time')
|
'notifies': _.sortBy(notifies, 'time')
|
||||||
|
Loading…
Reference in New Issue
Block a user