notifications: only update all new notifications
This commit is contained in:
parent
353f6f8940
commit
b99e1b03de
|
@ -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 New Issue