mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
The upload route awaited an unguarded enqueueDocumentIndex after the document was already committed. A transient boss.send rejection (a DB hiccup) would then surface as a 500 for an upload that in fact stored the file. Guard the send inside the enqueue (a failure annotates and no-ops, matching the missing-boss path) and drop the await at the call site so the response never blocks on or fails because of background indexing.