Skip to content

Commit

Permalink
Added email field to GrantApplicantDto and GrantApplicantController
Browse files Browse the repository at this point in the history
  • Loading branch information
kiramarstonTCO committed Jul 27, 2023
1 parent c1924a5 commit b9e9b7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
public class GetGrantApplicantDto {
private long id;
private String fullName;
private String email;
private GetGrantApplicantOrganisationProfileDto organisation;
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public ResponseEntity<GetGrantApplicantDto> getGrantApplicantById() {
final GrantApplicant applicant = grantApplicantService.getApplicantById(jwtPayload.getSub());
GetGrantApplicantDto applicantDto = modelMapper.map(applicant, GetGrantApplicantDto.class);
applicantDto.setFullName(WordUtils.capitalize(fullName));
applicantDto.setEmail(jwtPayload.getEmail());

return ResponseEntity.ok(applicantDto);
}
Expand Down

0 comments on commit b9e9b7a

Please sign in to comment.