mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
broader error handling for empty notif creation return
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user