always call create_list_from_dossiers

This commit is contained in:
simon lehericey 2022-04-05 14:20:59 +02:00
parent cf79e340ef
commit 51b71aaa01
4 changed files with 7 additions and 7 deletions

View file

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