diff --git a/app/cron.js b/app/cron.js index 77656bbc..c0d27abe 100644 --- a/app/cron.js +++ b/app/cron.js @@ -53,7 +53,7 @@ async function loop () { try { await sendNotification(notification, event, e) e.status = 'sent' - e.save() + return e.save() } catch (e) { console.error(e) e.status = 'error'