Skip to content

Commit

Permalink
fix: supervisor email lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
fw-noel committed Jan 29, 2025
1 parent de50d45 commit 731494b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/form/form.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export class FormService {
primaryPhone: data.primaryPhone.replace(/[(]|-|[)]|\s/gi, ''),
secondaryPhone: data?.secondaryPhone?.replace(/[(]|-|[)]|\s/gi, ''),
workPhone: data?.workPhone?.replace(/[(]|-|[)]|\s/gi, ''),
supervisorEmail: data.supervisorEmail,
supervisorEmail: data.supervisorEmail?.toLowerCase().trim(),
supervisorLastName: data.supervisorLastName,
supervisorFirstName: data.supervisorFirstName,
supervisorPhone: data?.supervisorPhoneNumber?.replace(
Expand Down
4 changes: 3 additions & 1 deletion backend/src/recommitment/recommitment.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ export class RecommitmentService {
await this.personnelService.updatePersonnelSupervisorInformation(
personnel,
{
supervisorEmail: recommitmentUpdate.supervisorInformation.email,
supervisorEmail: recommitmentUpdate.supervisorInformation.email
.toLowerCase()
.trim(),
supervisorFirstName:
recommitmentUpdate.supervisorInformation.firstName,
supervisorLastName: recommitmentUpdate.supervisorInformation.lastName,
Expand Down

0 comments on commit 731494b

Please sign in to comment.