Merging user accounts should be done in a transaction #2230
Labels
external contributors welcome
contribution is welcome!
type: optimization
code and performance optimizations
I think that for a safer merge at least some of the actions should be done inside a db transaction.
https://github.com/thepracticaldev/dev.to/blob/7c1418a87c654c2feb56124c2f750ee5a8455f12/app/services/moderator/merge_user.rb#L15-L26
The text was updated successfully, but these errors were encountered: