Prevent creating overlapping records
https://3.basecamp.com/2914079/buckets/27/card_tables/cards/9275047474
This commit is contained in:
@@ -9,7 +9,7 @@ module User::Notifiable
|
||||
end
|
||||
|
||||
def bundle(notification)
|
||||
transaction do
|
||||
with_lock do
|
||||
find_or_create_bundle_for(notification)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user