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

Loading…
Cancel
Save