Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Commit e7d7b69

Browse files
committed
fix: resolve transaction rollback and duplicate key errors in blog update flow
Problems fixed: - Transaction was rolling back silently due to writeDump() and abort calls inside the transaction block, and helper functions swallowing errors with return false instead of rethrowing them - deleteBlogTags() and deleteBlogCategories() were using Wheels soft delete, leaving rows physically in the database, causing duplicate key violations on the unique_blog_tag and unique_blog_category constraints when saveTags() and saveCategories() attempted to re-insert the same associations - findOne() on the Tag model was not using includeSoftDeleted=true, so soft-deleted tags were invisible to Wheels but still present in the DB, causing "Name has already been taken" validation errors on re-save
1 parent 1a4f944 commit e7d7b69

3 files changed

Lines changed: 301 additions & 219 deletions

File tree

0 commit comments

Comments
 (0)