mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-28 11:34:01 -06:00
Fix emails
This commit is contained in:
parent
fa11e79d4a
commit
03fc19281b
@ -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 New Issue
Block a user