refactor(correction): rename kind => reason with default correction => incorrect

This commit is contained in:
Colin Darie 2023-07-12 12:00:52 +02:00 committed by Paul Chavard
parent aceaf24e5f
commit 5998cfe31f
17 changed files with 82 additions and 52 deletions

View file

@ -235,7 +235,7 @@ module Instructeurs
commentaire = CommentaireService.build(current_instructeur, dossier, { body: message, piece_jointe: })
if commentaire.valid?
dossier.flag_as_pending_correction!(commentaire, params[:kind].presence)
dossier.flag_as_pending_correction!(commentaire, params[:reason].presence)
dossier.update!(last_commentaire_updated_at: Time.zone.now)
current_instructeur.follow(dossier)