Merge pull request #9310 from demarches-simplifiees/feat-graphql-dossier-corrections
API graphql: expose les demandes de corrections
This commit is contained in:
commit
03da5725d4
26 changed files with 210 additions and 57 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