refactor(correction): rename kind => reason with default correction => incorrect
This commit is contained in:
parent
aceaf24e5f
commit
5998cfe31f
17 changed files with 82 additions and 52 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue