From b83975869c66dc1024df073b7dbd309507086515 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 31 Oct 2023 16:25:18 +0100 Subject: [PATCH] tech(maintenance): ajoute une `maintenance_task` pour ajouter des champs manquant a un dossier --- .../maintenance/add_dossiers_missing_champs_task.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 app/tasks/maintenance/add_dossiers_missing_champs_task.rb diff --git a/app/tasks/maintenance/add_dossiers_missing_champs_task.rb b/app/tasks/maintenance/add_dossiers_missing_champs_task.rb new file mode 100644 index 000000000..7ffe905a5 --- /dev/null +++ b/app/tasks/maintenance/add_dossiers_missing_champs_task.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module Maintenance + class AddDossiersMissingChampsTask < MaintenanceTasks::Task + csv_collection + + def process(row) + DataFixer::DossierChampsMissing(dossier: row["dossier_id"]).fix + end + end +end