Skip to content

Conversation

clairep94
Copy link
Collaborator

@clairep94 clairep94 commented Sep 15, 2025

pr05 Typescript Migration 12: Migrate server files related to emailing/nodemailer

Should be reviewed after #3636

Changes:

  • Migrate /server/views files related to emailing
  • Migrate /server/utils/mail
  • Extract types to /server/types/email.ts from existing logic & nodemailer types

Other:

  • Took a look at /migrations/emailConsolidation, but this requires the User and Project models to be migrated first, which I'll do next

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123

@clairep94 clairep94 changed the title Pr05/migrate mail system Pr05/migrate server/mail system Sep 15, 2025
@clairep94 clairep94 added the pr05 Grant Projects pr05 Grant Projects label Sep 15, 2025
@clairep94 clairep94 marked this pull request as ready for review September 15, 2025 22:26
@clairep94 clairep94 changed the title Pr05/migrate server/mail system pr05 Typescript Migration #13: Migrate server/mail system Sep 15, 2025
@clairep94 clairep94 changed the title pr05 Typescript Migration #13: Migrate server/mail system pr05 Typescript Migration #12: Migrate server/mail system Sep 15, 2025
@clairep94
Copy link
Collaborator Author

@raclim @khanniie Ready for review after the TS dependencies PR is merged

khanniie
khanniie previously approved these changes Sep 23, 2025
Copy link
Member

@khanniie khanniie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the great work!!

} catch (e) {
console.error(e);
// fall through to undefined (null is not valid for nodemailer.SendMailOptions.html)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit but can we explicitly return undefined?

@khanniie khanniie requested a review from raclim September 23, 2025 05:54
@clairep94
Copy link
Collaborator Author

please see rebuilt here:

#3658

@clairep94 clairep94 closed this Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr05 Grant Projects pr05 Grant Projects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants