notifications: only update all new notifications

This commit is contained in:
Georg Gadinger 2023-01-23 12:25:48 +01:00
parent 353f6f8940
commit b99e1b03de
1 changed files with 1 additions and 1 deletions

View File

@ -8,5 +8,5 @@
.d-block.d-sm-none= render "shared/links" .d-block.d-sm-none= render "shared/links"
:ruby :ruby
Notification.for(current_user).update_all(new: false) Notification.for(current_user).where(new: true).update_all(new: false)
parent_layout 'base' parent_layout 'base'