mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 10:29:07 +01:00
Fix notification cache timestamp not being touched after marking all as read
This commit is contained in:
parent
9e9b651189
commit
4cab189750
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue