Adds logic to send proposal notifications in batches
WIP batches tests
This commit is contained in:
@@ -24,6 +24,19 @@ class Admin::SystemEmailsController < Admin::BaseController
|
||||
end
|
||||
end
|
||||
|
||||
def moderate_pending
|
||||
ProposalNotification.find(params[:id]).moderate_system_email(current_user)
|
||||
|
||||
redirect_to admin_system_email_preview_pending_path("proposal_notification_digest")
|
||||
end
|
||||
|
||||
def send_pending
|
||||
Notification.send_pending
|
||||
|
||||
flash[:notice] = t("admin.system_emails.preview_pending.send_pending_notification")
|
||||
redirect_to admin_system_emails_path
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def load_system_email
|
||||
|
||||
Reference in New Issue
Block a user