app/services/note_updator.rb
# descendants' tmp_keys are provided as an input so the frontend can match the created records
descendants' tmp_keys are provided as an input so the frontend can match the created records
descendants ' tmp_keys are provided as an input so the frontend can match the created records
def descendants_with_tmp_keys
      @note.descendants.as_json.map do |descendant|
        descendant_id = descendant["id"]
        tmp_key = @tmp_keys_by_id[descendant_id]
        descendant["tmp_key"] = tmp_key if tmp_key.present?
        descendant
      end
    end
def descendants_with_tmp_keys @note . descendants . as_json . map do | descendant | descendant_id = descendant [ "id" ] tmp_key = @tmp_keys_by_id [ descendant_id ] descendant [ "tmp_key" ] = tmp_key if tmp_key . present? descendant end end
descendants' tmp_keys are provided as an input so the frontend can match the created records
descendants ' tmp_keys are provided as an input so the frontend can match the created records