broader error handling for empty notif creation return

v1.18.x
Julian Lam 8 years ago
parent a3d65d10f6
commit f2653cd380

@ -453,7 +453,7 @@ Flags.update = function (flagId, uid, changeset, callback) {
nid: 'flags:assign:' + flagId + ':uid:' + assigneeId,
from: uid,
}, function (err, notification) {
if (err) {
if (err || !notification) {
return next(err);
}

Loading…
Cancel
Save