diff --git a/src/notifications.js b/src/notifications.js index faf4cd4b5c..57dae2f635 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -133,7 +133,7 @@ Notifications.create = async function (data) { data: data, }); if (!result.data) { - return; + return null; } await Promise.all([ db.sortedSetAdd('notifications', now, data.nid),