mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 08:12:52 +00:00
Apply the shared optimistic-concurrency guard (takeBaseToken + guardedUserUpdate) to the notification-prefs, mood-tag-layout, modules, and coach-prefs write endpoints so an interleaved edit can no longer silently overwrite a category a fresher writer just set; a tokenless request keeps the prior unconditional write. Route the inventory stock-correction PATCH and DELETE through the same per-medication advisory lock intake consumption takes, so an absolute stock write can no longer clobber a concurrent dose decrement. Guard every insight cache commit on the privacy mode still being what the generation read, so a privacy-mode change is respected by a generation that was already running.