refactor(dossier): use dossier method to set dossier

This commit is contained in:
Eric Leroy-Terquem 2024-09-16 09:14:54 +02:00
parent 838dc0a9e3
commit bca2b79c70
No known key found for this signature in database
GPG key ID: 53D8FAECEF207605

View file

@ -373,7 +373,7 @@ module Instructeurs
end end
def pieces_jointes def pieces_jointes
@dossier = current_instructeur.dossiers.find(params[:dossier_id]) @dossier = dossier
@pieces_jointes_seen_at = current_instructeur.follows.find_by(dossier: dossier)&.pieces_jointes_seen_at @pieces_jointes_seen_at = current_instructeur.follows.find_by(dossier: dossier)&.pieces_jointes_seen_at
end end