Merge pull request #10273 from demarches-simplifiees/discard_champ_fetch_job_on_not_found

Tech:  supprime les fetch_external_data_job lorsque le champ correspond n'existe plus
This commit is contained in:
LeSim 2024-04-08 08:13:06 +00:00 committed by GitHub
commit 6855213435
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,6 @@
class ChampFetchExternalDataJob < ApplicationJob
discard_on ActiveJob::DeserializationError
include Dry::Monads[:result]
def perform(champ, external_id)