Skip to content

Commit

Permalink
Replace redeem_voucher_params by check_voucher_params
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterfarrell9 committed Aug 17, 2024
1 parent f7e9b57 commit 19148e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/vouchers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def process_voucher(voucher, lecture)

def process_tutor_voucher(voucher, lecture)
selected_tutorials = lecture.tutorials
.where(id: redeem_voucher_params[:tutorial_ids])
.where(id: check_voucher_params[:tutorial_ids])
lecture.update_tutor_status!(current_user, selected_tutorials)
Redemption.create(user: current_user, voucher: voucher,
claimed_tutorials: selected_tutorials)
Expand Down

0 comments on commit 19148e3

Please sign in to comment.