mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
DEV: Replace 'processed' column on notifications with new table (#11864)
This commit is contained in:

committed by
GitHub

parent
60f10e9067
commit
809274fe0d
@ -25,9 +25,8 @@ class DoNotDisturbController < ApplicationController
|
||||
def destroy
|
||||
current_user.active_do_not_disturb_timings.destroy_all
|
||||
current_user.publish_do_not_disturb(ends_at: nil)
|
||||
current_user.notifications.unprocessed.each do |notification|
|
||||
NotificationEmailer.process_notification(notification, no_delay: true)
|
||||
end
|
||||
current_user.shelved_notifications.each(&:process)
|
||||
current_user.shelved_notifications.destroy_all
|
||||
render json: success_json
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user