diff --git a/app/models/user/notifiable.rb b/app/models/user/notifiable.rb index b0e4ffcad..ef5249611 100644 --- a/app/models/user/notifiable.rb +++ b/app/models/user/notifiable.rb @@ -9,7 +9,7 @@ module User::Notifiable end def bundle(notification) - transaction do + with_lock do find_or_create_bundle_for(notification) end end