fix(MemberService): wrap multi-step writes in database transactions #203
Reference in New Issue
Block a user
Delete Branch "fix/missing-database-transactions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add IDBConnection dependency to MemberService and wrap create(), update(), and softDelete() in transactions (beginTransaction/commit/rollback). This ensures atomicity when inserting/updating members alongside sub-entities (addresses, phones, emails) — a failure at any step now rolls back the entire operation instead of leaving orphaned records.
(Closes #203)