refactor(pj_service): explicit options with_{bills,champs_private} because expert & instructeurs does not need the same

This commit is contained in:
Colin Darie 2023-01-30 17:42:03 +01:00
parent 911e84263f
commit ef864021f7
8 changed files with 23 additions and 22 deletions

View file

@ -235,7 +235,7 @@ module Instructeurs
end
def telecharger_pjs
files = ActiveStorage::DownloadableFile.create_list_from_dossiers(Dossier.where(id: dossier.id), true)
files = ActiveStorage::DownloadableFile.create_list_from_dossiers(Dossier.where(id: dossier.id), with_champs_private: true)
cleaned_files = ActiveStorage::DownloadableFile.cleanup_list_from_dossier(files)
zipline(cleaned_files, "dossier-#{dossier.id}.zip")