ask effectifs only for 2020/02
This commit is contained in:
parent
5f200ecdfb
commit
6535324ae9
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