notifications refactor

added getMultiple which works with an array of nids
This commit is contained in:
barisusakli
2014-08-16 23:25:30 -04:00
parent dd9a383f46
commit 5ae7c92d55
3 changed files with 137 additions and 142 deletions

View File

@@ -478,7 +478,7 @@ accountsController.uploadPicture = function (req, res, next) {
};
accountsController.getNotifications = function(req, res, next) {
user.notifications.getAll(req.user.uid, null, null, function(err, notifications) {
user.notifications.getAll(req.user.uid, 25, function(err, notifications) {
res.render('notifications', {
notifications: notifications
});