This is rare enough that a redirect is fine
This commit is contained in:
@@ -6,9 +6,6 @@ class Notifications::ReadingsController < ApplicationController
|
||||
|
||||
def create_all
|
||||
Current.user.notifications.unread.read_all
|
||||
|
||||
set_page_and_extract_portion_from Current.user.notifications.read.ordered if request.format.turbo_stream?
|
||||
|
||||
Turbo::StreamsChannel.broadcast_update_to [ Current.user, :notifications ], target: "notifications", html: ""
|
||||
redirect_to notifications_path
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user