mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
notifications.create can return null
This commit is contained in:
@@ -90,7 +90,7 @@ var async = require('async'),
|
||||
|
||||
if (oldNotification) {
|
||||
if (parseInt(oldNotification.pid, 10) === parseInt(data.pid, 10) && parseInt(oldNotification.importance, 10) > parseInt(data.importance, 10)) {
|
||||
return callback();
|
||||
return callback(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -367,7 +367,7 @@ var async = require('async'),
|
||||
|
||||
return cur;
|
||||
}, []);
|
||||
|
||||
|
||||
differentiators.forEach(function(differentiator) {
|
||||
set = isolated.filter(function(notifObj) {
|
||||
return notifObj.mergeId === (mergeId + '|' + differentiator);
|
||||
|
||||
Reference in New Issue
Block a user