Merge pull request #9310 from demarches-simplifiees/feat-graphql-dossier-corrections

API graphql: expose les demandes de corrections
This commit is contained in:
Paul Chavard 2023-07-21 22:00:42 +00:00 committed by GitHub
commit 03da5725d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 210 additions and 57 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)