Skip to content

Commit d374a63

Browse files
committed
fix: data template email
1 parent 1221ff3 commit d374a63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/helpers/SendEmail.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import ResponseError from 'modules/Response/ResponseError'
66
import { BASE_URL_CLIENT } from 'config/baseClient'
77
import { EmailAttributes, UserAttributes } from 'models/user'
88

9+
const { APP_NAME } = process.env
10+
911
class SendMail {
1012
/**
1113
*
@@ -20,7 +22,7 @@ class SendMail {
2022
)
2123
const subject = 'Verifikasi Email'
2224
const urlToken = `${BASE_URL_CLIENT}/email/verify?token=${token}`
23-
const dataTemplate = { fullName, urlToken }
25+
const dataTemplate = { APP_NAME, fullName, urlToken }
2426
const Email = new EmailProvider()
2527

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

0 commit comments

Comments
 (0)