Skip to content

Commit

Permalink
Updating the mandatory question status when an update is performed
Browse files Browse the repository at this point in the history
  • Loading branch information
GavCookCO committed Oct 13, 2023
1 parent cf9b01b commit da55140
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import gov.cabinetoffice.gap.applybackend.dto.api.GetGrantMandatoryQuestionDto;
import gov.cabinetoffice.gap.applybackend.dto.api.JwtPayload;
import gov.cabinetoffice.gap.applybackend.dto.api.UpdateGrantMandatoryQuestionDto;
import gov.cabinetoffice.gap.applybackend.enums.GrantMandatoryQuestionStatus;
import gov.cabinetoffice.gap.applybackend.model.GrantApplicant;
import gov.cabinetoffice.gap.applybackend.model.GrantMandatoryQuestions;
import gov.cabinetoffice.gap.applybackend.model.GrantScheme;
Expand Down Expand Up @@ -76,6 +77,7 @@ public ResponseEntity<String> updateMandatoryQuestion(@PathVariable final UUID m

modelMapper.map(mandatoryQuestionDto, grantMandatoryQuestions);
grantMandatoryQuestions.setId(mandatoryQuestionId);
grantMandatoryQuestions.setStatus(GrantMandatoryQuestionStatus.IN_PROGRESS);

grantMandatoryQuestionService.updateMandatoryQuestion(grantMandatoryQuestions);

Expand Down

0 comments on commit da55140

Please sign in to comment.