Skip to content

Commit

Permalink
closes #4881
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jul 25, 2016
1 parent e81b672 commit 5cbfa6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/groups/membership.js
Expand Up @@ -153,11 +153,7 @@ module.exports = function(Groups) {
path: '/groups/' + utils.slugify(groupName)
}),
function (notification, next) {
if (!notification) {
return next();
}

notifications.push(notification, [uid]);
notifications.push(notification, [uid], next);
}
], callback);
};
Expand Down
2 changes: 1 addition & 1 deletion src/notifications.js
Expand Up @@ -163,7 +163,7 @@ var utils = require('../public/src/utils');
Notifications.push = function(notification, uids, callback) {
callback = callback || function() {};

if (!notification.nid) {
if (!notification || !notification.nid) {
return callback();
}

Expand Down

0 comments on commit 5cbfa6f

Please sign in to comment.