aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/emailer.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-02 09:21:33 +0200
committerChocobozzz <me@florianbigard.com>2020-06-02 09:21:33 +0200
commit03fc19281b476f29b315083f373ca1a1fd4487f9 (patch)
treeabf562bb8eba8f0902e337aa53f523ee0116d98f /server/lib/emailer.ts
parentfa11e79d4ad9211848938af490493078437bf500 (diff)
downloadPeerTube-03fc19281b476f29b315083f373ca1a1fd4487f9.tar.gz
PeerTube-03fc19281b476f29b315083f373ca1a1fd4487f9.tar.zst
PeerTube-03fc19281b476f29b315083f373ca1a1fd4487f9.zip
Fix emails
Diffstat (limited to 'server/lib/emailer.ts')
-rw-r--r--server/lib/emailer.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts
index 935c9e882..04aade83a 100644
--- a/server/lib/emailer.ts
+++ b/server/lib/emailer.ts
@@ -473,7 +473,7 @@ class Emailer {
473 }, 473 },
474 transport: this.transporter, 474 transport: this.transporter,
475 views: { 475 views: {
476 root: join(root(), 'server', 'lib', 'emails') 476 root: join(root(), 'dist', 'server', 'lib', 'emails')
477 }, 477 },
478 subjectPrefix: CONFIG.EMAIL.SUBJECT.PREFIX 478 subjectPrefix: CONFIG.EMAIL.SUBJECT.PREFIX
479 }) 479 })
@@ -498,8 +498,8 @@ class Emailer {
498 }, 498 },
499 options // overriden/new variables given for a specific template in the payload 499 options // overriden/new variables given for a specific template in the payload
500 ) as SendEmailOptions) 500 ) as SendEmailOptions)
501 .then(logger.info) 501 .then(res => logger.debug('Sent email.', { res }))
502 .catch(logger.error) 502 .catch(err => logger.error('Error in email sender.', { err }))
503 } 503 }
504 } 504 }
505 505