From 4cab189750391b97b13b8efa32e49e4b230e0b44 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Mon, 8 May 2023 18:55:25 +0200 Subject: [PATCH] Fix notification cache timestamp not being touched after marking all as read --- app/controllers/notifications_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index defe6410..b0088074 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -27,6 +27,7 @@ class NotificationsController < ApplicationController def read current_user.notifications.where(new: true).update_all(new: false) # rubocop:disable Rails/SkipsModelValidations + current_user.touch(:notifications_updated_at) respond_to do |format| format.turbo_stream do