Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aliosmandev committed Oct 14, 2023
1 parent 203ae9e commit 9c245f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/helpers/mail.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const sendMail = async (to: string, subject: string, html: string) => {
}

export const getMailTemplate = (template: 'welcome' = 'welcome', language: string, replaceVariables: object) => {
const templatePath = path.join(__dirname, `../../templates/${template}/${language}.html`)
const templatePath = path.join(__dirname, `../../../templates/${template}/${language}.html`)
let templateContent = fs.readFileSync(templatePath, 'utf8')

for (const [key, value] of Object.entries(replaceVariables)) {
Expand Down

0 comments on commit 9c245f7

Please sign in to comment.