From 570239cccf3f45928362941ab0cf1f298e444da2 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 24 Aug 2013 17:56:11 +0000 Subject: [PATCH] whoopsies --- modules/report/pages.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/report/pages.js b/modules/report/pages.js index 29efd84..15edbed 100644 --- a/modules/report/pages.js +++ b/modules/report/pages.js @@ -30,9 +30,11 @@ var pages = function(dbot) { async.eachSeries(userCount, function(userCount, next) { dbot.api.users.getUser(userCount.id, function(user) { - userCount['name'] = user.primaryNick; - users.push(userCount); - next(); + if(user) { + userCount['name'] = user.primaryNick; + users.push(userCount); + next(); + } }); }, function() { res.render('channels', { @@ -49,8 +51,6 @@ var pages = function(dbot) { user = req.user, notifies = this.pending[user.id]; - async.eachSeries - res.render('missing_notifies', { 'user': user.primaryNick, 'notifies': _.sortBy(notifies, 'time')