From d8d6c989709e9176f93fdfb71d4ae19d2fd599b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 28 May 2021 12:32:52 -0400 Subject: [PATCH] fix: return null --- src/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),