Fix emails
This commit is contained in:
parent
fa11e79d4a
commit
03fc19281b
2 changed files with 4 additions and 3 deletions
|
@ -7,3 +7,4 @@ rm -rf ./dist
|
||||||
npm run tsc
|
npm run tsc
|
||||||
cp "./tsconfig.json" "./dist"
|
cp "./tsconfig.json" "./dist"
|
||||||
cp -r "./server/static" "./server/assets" "./dist/server"
|
cp -r "./server/static" "./server/assets" "./dist/server"
|
||||||
|
cp -r "./server/lib/emails" "./dist/server/lib"
|
||||||
|
|
|
@ -473,7 +473,7 @@ class Emailer {
|
||||||
},
|
},
|
||||||
transport: this.transporter,
|
transport: this.transporter,
|
||||||
views: {
|
views: {
|
||||||
root: join(root(), 'server', 'lib', 'emails')
|
root: join(root(), 'dist', 'server', 'lib', 'emails')
|
||||||
},
|
},
|
||||||
subjectPrefix: CONFIG.EMAIL.SUBJECT.PREFIX
|
subjectPrefix: CONFIG.EMAIL.SUBJECT.PREFIX
|
||||||
})
|
})
|
||||||
|
@ -498,8 +498,8 @@ class Emailer {
|
||||||
},
|
},
|
||||||
options // overriden/new variables given for a specific template in the payload
|
options // overriden/new variables given for a specific template in the payload
|
||||||
) as SendEmailOptions)
|
) as SendEmailOptions)
|
||||||
.then(logger.info)
|
.then(res => logger.debug('Sent email.', { res }))
|
||||||
.catch(logger.error)
|
.catch(err => logger.error('Error in email sender.', { err }))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue