From b99e1b03de2841c7302e2c13c5e433faa3dd4245 Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Mon, 23 Jan 2023 12:25:48 +0100 Subject: [PATCH] notifications: only update all new notifications --- app/views/layouts/notifications.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/notifications.html.haml b/app/views/layouts/notifications.html.haml index d7c87e7e..dceb6d47 100644 --- a/app/views/layouts/notifications.html.haml +++ b/app/views/layouts/notifications.html.haml @@ -8,5 +8,5 @@ .d-block.d-sm-none= render "shared/links" :ruby - Notification.for(current_user).update_all(new: false) + Notification.for(current_user).where(new: true).update_all(new: false) parent_layout 'base'