Merge pull request #1633 from basecamp/overlapping-records
Prevent creating overlapping records
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