You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: in_progress_forms_controller.rb
    path of file: ./repos/vets-api/app/controllers/v0
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module V0
  class InProgressFormsController < Applica
    
    def update
      form = InProgressForm.form_for_user(form_id, @current_user) ||
             InProgressForm.new(form_id:, user_uuid: @current_user.uuid)
      form.user_account = @current_user.user_account
      form.real_user_uuid = @current_user.uuid

      ClaimFastTracking::MaxCfiMetrics.log_form_update(form, params)

      form.update!(form_data: params[:form_data] || params[:formData], metadata: params[:metadata])
      render json: form, key_transform: :unaltered
    end