mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
PUT /api/settings/ntfy reconstructed the entire stored config from the request body. GET never returns the write-only authToken (only hasAuthToken), so clients correctly omit it on any edit that doesn't touch the credential — but the route treated an omitted or empty token as "clear it", silently destroying a working notification credential on routine edits like toggling enabled. An omitted or empty authToken now preserves the currently stored value; only a non-empty value replaces it. Mirrors the identical headerValue preserve-on-empty contract already shipped on the webhook channel route.