diff --git a/scripts/health-sync.js b/scripts/health-sync.js index 577d4b8..f72423a 100644 --- a/scripts/health-sync.js +++ b/scripts/health-sync.js @@ -49,11 +49,11 @@ function todayDate() { return new Date().toISOString().slice(0, 10); } -function notify(body) { +async function notify(body) { const n = new Notification(); n.title = "Health Sync"; n.body = body; - n.schedule(); + await n.schedule(); } // --- Read all health metrics ---