This commit is contained in:
m5r
2021-08-01 22:03:49 +08:00
parent 7d34fcd48f
commit 1489f97c14
33 changed files with 147 additions and 313 deletions

View File

@ -35,9 +35,7 @@ export function forgotPasswordMailer({ to, token }: ResetPasswordMailer) {
if (process.env.NODE_ENV === "production") {
// TODO - send the production email, like this:
// await postmark.sendEmail(msg)
throw new Error(
"No production email implementation in mailers/forgotPasswordMailer",
);
throw new Error("No production email implementation in mailers/forgotPasswordMailer");
} else {
// Preview email in the browser
await previewEmail(msg);