0
0
Fork 0

Misc spec/refactor to user mailer and user mailer spec (#27486)

This commit is contained in:
Matt Jankowski 2023-10-27 05:57:16 -04:00 committed by GitHub
parent 37929b9707
commit 1f5187e2e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 65 additions and 51 deletions

View file

@ -20,7 +20,7 @@ class Admin::Disputes::AppealsController < Admin::BaseController
authorize @appeal, :approve?
log_action :reject, @appeal
@appeal.reject!(current_account)
UserMailer.appeal_rejected(@appeal.account.user, @appeal)
UserMailer.appeal_rejected(@appeal.account.user, @appeal).deliver_later
redirect_to disputes_strike_path(@appeal.strike)
end