diff --git a/src/flags.js b/src/flags.js index af63365a2a..7e03e9cffd 100644 --- a/src/flags.js +++ b/src/flags.js @@ -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); }