diff options
author | Gavin Mogan <git@gavinmogan.com> | 2025-04-23 17:27:55 -0700 |
---|---|---|
committer | Gavin Mogan <git@gavinmogan.com> | 2025-04-23 17:43:37 -0700 |
commit | a8a17443c2d070d2d23920ffff7e4a43c905698c (patch) | |
tree | cddb37a6af4a65f774863e51be941cd291af5683 /src/models | |
parent | aace2c7e6ccb6e74df83faac74c427d43bfaf79b (diff) |
Refactor for everywhere to use sendEmailFromTemplate everywhere
* Created a singleton to house handlebars so req doesn't need to be
passed everywhere (should make unit testing easier later)
* Subjectline for sendgrid and nodemailer are both always prefixed in
sendEmail()
* removed prefix subjectline from all other email places
* added a couple if (!event) { return 404 } to help make typescript
happy
* some minor eslint auto fixes (looks like let => const where it can)
Diffstat (limited to 'src/models')
0 files changed, 0 insertions, 0 deletions