fix: remove Script.done() — not a function in Scriptable

This commit is contained in:
Anthony Merlo 2026-08-21 00:08:31 +01:00
parent c65affc66c
commit 2b5751d50e

View file

@ -124,12 +124,11 @@ if (spo2) {
});
}
// --- POST to server ---
if (samples.length === 0) {
await notify("No health data found today");
Script.done();
}
} else {
// --- POST to server ---
const req = new Request(SERVER_URL);
req.method = "POST";
req.headers = {
@ -144,3 +143,5 @@ try {
} catch (e) {
await notify(`✗ Error: ${e.message || e}`);
}
} // end else