Skip to content

Commit

Permalink
fix: data template email
Browse files Browse the repository at this point in the history
  • Loading branch information
masb0ymas committed Nov 27, 2020
1 parent 1221ff3 commit d374a63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/helpers/SendEmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import ResponseError from 'modules/Response/ResponseError'
import { BASE_URL_CLIENT } from 'config/baseClient'
import { EmailAttributes, UserAttributes } from 'models/user'

const { APP_NAME } = process.env

class SendMail {
/**
*
Expand All @@ -20,7 +22,7 @@ class SendMail {
)
const subject = 'Verifikasi Email'
const urlToken = `${BASE_URL_CLIENT}/email/verify?token=${token}`
const dataTemplate = { fullName, urlToken }
const dataTemplate = { APP_NAME, fullName, urlToken }
const Email = new EmailProvider()

readHTMLFile(pathTemplate, (error: Error, html: any) => {
Expand Down

0 comments on commit d374a63

Please sign in to comment.