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
|
||||
cp "./tsconfig.json" "./dist"
|
||||
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,
|
||||
views: {
|
||||
root: join(root(), 'server', 'lib', 'emails')
|
||||
root: join(root(), 'dist', 'server', 'lib', 'emails')
|
||||
},
|
||||
subjectPrefix: CONFIG.EMAIL.SUBJECT.PREFIX
|
||||
})
|
||||
|
@ -498,8 +498,8 @@ class Emailer {
|
|||
},
|
||||
options // overriden/new variables given for a specific template in the payload
|
||||
) as SendEmailOptions)
|
||||
.then(logger.info)
|
||||
.catch(logger.error)
|
||||
.then(res => logger.debug('Sent email.', { res }))
|
||||
.catch(err => logger.error('Error in email sender.', { err }))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue