npnp, I totally meant to remove a method that's still in use...

v1.18.x
Julian Lam 10 years ago
parent ec075ca608
commit 37d426dddb

@ -39,6 +39,20 @@ var async = require('async'),
});
};
UserNotifications.getAll = function(uid, count, callback) {
getNotifications(uid, count, function(err, notifs) {
if (err) {
return callback(err);
}
notifs = notifs.unread.concat(notifs.read);
notifs = notifs.filter(Boolean).sort(function(a, b) {
return b.datetime - a.datetime;
});
callback(null, notifs);
});
};
function getNotifications(uid, count, callback) {
async.parallel({
unread: function(next) {

Loading…
Cancel
Save