From 21d5da379f19217817a69056f801e92aad08f5de Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Thu, 11 Mar 2021 12:25:47 +0100 Subject: [PATCH] remove unused job --- app/jobs/annuaire_education_update_job.rb | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 app/jobs/annuaire_education_update_job.rb diff --git a/app/jobs/annuaire_education_update_job.rb b/app/jobs/annuaire_education_update_job.rb deleted file mode 100644 index ffd06a27e..000000000 --- a/app/jobs/annuaire_education_update_job.rb +++ /dev/null @@ -1,16 +0,0 @@ -class AnnuaireEducationUpdateJob < ApplicationJob - def perform(champ) - external_id = champ.external_id - - if external_id.present? - data = APIEducation::AnnuaireEducationAdapter.new(external_id).to_params - - if data.present? - champ.data = data - else - champ.external_id = nil - end - champ.save! - end - end -end