From e93acb0e3885b15abf1bb9ef8135ebeec6010484 Mon Sep 17 00:00:00 2001 From: Kevin McConnell Date: Tue, 28 Jan 2025 11:54:11 +0000 Subject: [PATCH] Don't repeatedly mark notifications read --- app/controllers/readings_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/readings_controller.rb b/app/controllers/readings_controller.rb index fb7112b76..6482cd7c9 100644 --- a/app/controllers/readings_controller.rb +++ b/app/controllers/readings_controller.rb @@ -8,6 +8,6 @@ class ReadingsController < ApplicationController private def mark_bubble_notifications_read - Current.user.notifications.where(bubble: @bubble).read_all + Current.user.notifications.unread.where(bubble: @bubble).read_all end end