mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
notifications: only update all new notifications
This commit is contained in:
parent
353f6f8940
commit
b99e1b03de
1 changed files with 1 additions and 1 deletions
|
@ -8,5 +8,5 @@
|
|||
.d-block.d-sm-none= render "shared/links"
|
||||
|
||||
:ruby
|
||||
Notification.for(current_user).update_all(new: false)
|
||||
Notification.for(current_user).where(new: true).update_all(new: false)
|
||||
parent_layout 'base'
|
||||
|
|
Loading…
Reference in a new issue