fix stupid mistake

This commit is contained in:
Henry Oswald 2017-01-25 10:38:39 +00:00
parent 2a00b9c7a2
commit 3eb13ccdd1

View file

@ -13,7 +13,7 @@ module.exports =
logger.log {user_id:user?._id}, "getting unread announcements"
AnnouncementsHandler.getUnreadAnnouncements user, (err, announcements)->
if err?
logger.err {err, user._id}, "unable to get unread announcements"
logger.err {err:err, user_id:user._id}, "unable to get unread announcements"
next(err)
else
res.json announcements