summaryrefslogtreecommitdiff
path: root/src/lib/handlebars.ts
AgeCommit message (Collapse)Author
2025-04-23Refactor for everywhere to use sendEmailFromTemplate everywhereGavin Mogan
* 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)
2025-04-23Fix ReferenceError: nodemailerTransporter is not definedGavin Mogan
Part of https://github.com/lowercasename/gathio/pull/200 was migrating more code to use the shared init email function, but all the local usages of nodemailerTransporter were missed
2023-10-07refactor: event form and api routesRaphael Kabo