rename content_type to time_span_type for archives
This commit is contained in:
parent
9134114c2e
commit
dfbe004122
7 changed files with 24 additions and 19 deletions
|
@ -11,7 +11,7 @@ class ProcedureArchiveService
|
|||
.where(procedure: @procedure)
|
||||
|
||||
archive = Archive.for_groupe_instructeur(groupe_instructeurs).find_by(
|
||||
content_type: type,
|
||||
time_span_type: type,
|
||||
month: month
|
||||
)
|
||||
if archive.nil?
|
||||
|
@ -25,7 +25,7 @@ class ProcedureArchiveService
|
|||
end
|
||||
|
||||
def collect_files_archive(archive, instructeur)
|
||||
if archive.content_type == 'everything'
|
||||
if archive.time_span_type == 'everything'
|
||||
dossiers = @procedure.dossiers.state_termine
|
||||
else
|
||||
dossiers = @procedure.dossiers.processed_in_month(archive.month)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue