Fix notification cache timestamp not being touched after marking all as read

This commit is contained in:
Karina Kwiatek 2023-05-08 18:55:25 +02:00
parent 9e9b651189
commit 4cab189750
1 changed files with 1 additions and 0 deletions

View File

@ -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