1
0
Fork 0

Fix emails

This commit is contained in:
Chocobozzz 2020-06-02 09:21:33 +02:00
parent fa11e79d4a
commit 03fc19281b
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 4 additions and 3 deletions

View file

@ -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"

View file

@ -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 }))
}
}