Also abort if no uids to push to

This commit is contained in:
Peter Jaszkowiak
2017-04-26 10:48:08 -06:00
parent 42e21d5aa9
commit 19d6386237

View File

@@ -191,7 +191,7 @@ var utils = require('./utils');
plugins.fireHook('filter:notification.push', { notification: notification, uids: uids }, next);
},
function (data, next) {
if (!data || !data.notification) {
if (!data || !data.notification || !data.uids || !data.uids.length) {
return callback();
}