Merge pull request #5225 from betagouv/5224-fix-effectifs
ask effectifs only for 2020/02
This commit is contained in:
commit
94862340f7
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
|||
class ApiEntreprise::EffectifsJob < ApiEntreprise::Job
|
||||
def perform(etablissement_id, procedure_id)
|
||||
etablissement = Etablissement.find(etablissement_id)
|
||||
etablissement_params = ApiEntreprise::EffectifsAdapter.new(etablissement.siret, procedure_id, *get_current_valid_month_for_effectif).to_params
|
||||
# effectifs endpoint currently only works when asking for february 2020 month
|
||||
etablissement_params = ApiEntreprise::EffectifsAdapter.new(etablissement.siret, procedure_id, "2020", "02").to_params
|
||||
etablissement.update!(etablissement_params)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue