This commit is contained in:
Georg Gadinger 2023-01-24 15:57:34 +01:00
parent 58705fffba
commit 8cd0d481c8
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class NotificationsController < ApplicationController
def mark_notifications_as_read def mark_notifications_as_read
# using .dup to not modify @notifications -- useful in tests # using .dup to not modify @notifications -- useful in tests
@notifications&.dup&.update_all(new: false) @notifications&.dup&.update_all(new: false) # rubocop:disable Rails/SkipsModelValidations
end end
def cursored_notifications_for(type:, last_id:, size: nil) def cursored_notifications_for(type:, last_id:, size: nil)