fix: return null

v1.18.x
Barış Soner Uşaklı 4 years ago
parent ac7b093f99
commit d8d6c98970

@ -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),

Loading…
Cancel
Save