Skip to content

Commit

Permalink
fix(email): add missing API prefix for user endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed May 22, 2022
1 parent e5ed994 commit 87b8874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/lib/email/EmailHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sgMail.setApiKey(process.env.SENDGRID_API_KEY);
class EmailHandler {
static SendResetEmail(email: any, token: string) {
const link = `${process.env.DOMAIN}/api/users/r/${token}`;
const markup = PASSWORD_RESET_TEMPLATE.replace('{{link}}', link);
const markup = PASSWORD_RESET_TEMPLATE.replace("{{link}}", link);
const msg = {
to: email,
from: DEFAULT_SENDER,
Expand All @@ -42,7 +42,7 @@ class EmailHandler {

static async SendVerificationEmail(email: string, token: string) {
const link = `${process.env.DOMAIN}/api/users/v/${token}`;
const markup = VERIFICATION_TEMPLATE.replace('{{link}}', link);
const markup = VERIFICATION_TEMPLATE.replace("{{link}}", link);
const msg = {
to: email,
from: DEFAULT_SENDER,
Expand Down

0 comments on commit 87b8874

Please sign in to comment.