Use Procedure#archive instead of duplicating code
This commit is contained in:
parent
0ec3855f8d
commit
cf573a1ec6
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class AutoArchiveProcedureWorker
|
|||
dossier.received!
|
||||
end
|
||||
|
||||
procedure.update_attributes!(archived: true)
|
||||
procedure.archive
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue