mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 10:46:14 +01:00
fix: return null
This commit is contained in:
@@ -133,7 +133,7 @@ Notifications.create = async function (data) {
|
|||||||
data: data,
|
data: data,
|
||||||
});
|
});
|
||||||
if (!result.data) {
|
if (!result.data) {
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
db.sortedSetAdd('notifications', now, data.nid),
|
db.sortedSetAdd('notifications', now, data.nid),
|
||||||
|
|||||||
Reference in New Issue
Block a user