fix(procedure): return most recent demarche for a given path
This commit is contained in:
parent
8958ba0725
commit
e8b10fd320
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ module Users
|
|||
end
|
||||
|
||||
def retrieve_procedure_with_closed
|
||||
Procedure.publiees.or(Procedure.brouillons).or(Procedure.closes).find_by(path: params[:path])
|
||||
Procedure.publiees.or(Procedure.brouillons).or(Procedure.closes).order(published_at: :desc).find_by(path: params[:path])
|
||||
end
|
||||
|
||||
def retrieve_prefilled_dossier
|
||||
|
|
Loading…
Reference in a new issue