Fix notification cache timestamp not being touched after marking all as read
This commit is contained in:
parent
9e9b651189
commit
4cab189750
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue