mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
A partial-update upsert soft-decrypted the existing encrypted column, returned null on failure, then re-wrote it — so editing an unrelated field permanently nulled an undecryptable note or sensitive envelope. Preserve the existing ciphertext verbatim when the encrypted field is absent from the update; only re-encrypt on an explicit field write. Mirrors the v1.18.1 rotation fix.