refactor(pj_service): explicit options with_{bills,champs_private} because expert & instructeurs does not need the same
This commit is contained in:
parent
911e84263f
commit
ef864021f7
8 changed files with 23 additions and 22 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue