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: sync_batch.rb
    path of file: ./repos/mashcard/apps/server-monolith/app/graphql/mutations/blocks
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Mutations
  module Blocks
    class SyncBatch < ::Mutations::BaseMutation
      graphql_name 'BlockSyncBatch'
      arg
    
      def do_resolve(blocks:, root_id:, operator_id:, deleted_ids:)
        # temp fix before it has permission checking
        return unless current_user

        Rails.logger.info("resolve #{root_id} #{operator_id} #{deleted_ids} #{blocks}")
        root = Docs::Block.find_by(id: root_id)
        if root
          authorize! root, to: :edit?
        end