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: commented_work_records_controller.rb
    path of file: ./repos/annict/app/controllers/api/internal
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Api::Internal
  class CommentedWorkRecordsController < ApplicationV6Controller
    before_action :authenticate_user!

    def create
      @work = Work
    
    def create
      @work = Work.only_kept.find(params[:work_id])
      @form = Forms::WorkRecordForm.new(user: current_user, work: @work)
      @form.attributes = work_record_form_params

      if @form.invalid?
        return render json: @form.errors.full_messages, status: :unprocessable_entity
      end