Skip to content

Commit

Permalink
[ARP-86023] ARP IPF: Work around weird CodeQL CWE-915 issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
nihil2501 committed Sep 7, 2024
1 parent 1b71779 commit 5aaee4b
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module V0
class InProgressFormsController < ApplicationController
def update
form = in_progress_form || new_form_for_user(form_id, @current_user)
form.update!(form_params)
form.update!(form_data: params[:form_data], metadata: params[:metadata])

render json: InProgressFormSerializer.new(form)
end
Expand Down Expand Up @@ -44,10 +44,6 @@ def in_progress_form
InProgressForm.form_for_user(form_id, @current_user)
end

def form_params
params.permit(form_data: {}, metadata: {})
end

def form_id
params[:id]
end
Expand Down

0 comments on commit 5aaee4b

Please sign in to comment.