Skip to content

Commit

Permalink
Fix #destroy hanging after another action inside a transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
arturantonnikau committed Mar 7, 2024
1 parent 5f46f41 commit 2141a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoid/paranoia.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def paranoid_field
# @return [ Object ] Update result.
#
def _paranoia_update(value)
paranoid_collection.find(atomic_selector).update_one(value)
paranoid_collection.find(atomic_selector).update_one(value, session: _session)
end
end
end

0 comments on commit 2141a59

Please sign in to comment.