From 8cd0d481c8ca1d9fcf51a589905658c1e62b77be Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Tue, 24 Jan 2023 15:57:34 +0100 Subject: [PATCH] bruh --- app/controllers/notifications_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index 0655c3c3..4f2dfdeb 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -29,7 +29,7 @@ class NotificationsController < ApplicationController def mark_notifications_as_read # 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 def cursored_notifications_for(type:, last_id:, size: nil)