FEATURE: log manual bounce reset (#20758)

DEV: rename the route "/admin/users/:id/reset_bounce_score" to use dashes instead of underscores
This commit is contained in:
Régis Hanol
2023-03-21 15:26:26 +01:00
committed by GitHub
parent 7ccc7b75b2
commit 37609897e8
6 changed files with 40 additions and 2 deletions

View File

@ -588,6 +588,7 @@ class Admin::UsersController < Admin::StaffController
def reset_bounce_score
guardian.ensure_can_reset_bounce_score!(@user)
@user.user_stat&.reset_bounce_score!
StaffActionLogger.new(current_user).log_reset_bounce_score(@user)
render json: success_json
end