mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 04:50:59 +00:00
The mood entry was committed before createTagLinks/replaceTagLinks ran, so a tag-link failure 5xx'd after the entry already existed and a client retry minted a duplicate entry. Wrap the entry write and the tag-link write in one $transaction and thread the tx client through both helpers so they commit or roll back together.