mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
fix lint errors
This commit is contained in:
parent
b3deea4918
commit
5b8d2eb2f6
@ -8,17 +8,20 @@ let sendMail
|
||||
if (CONFIG.SMTP_HOST && CONFIG.SMTP_PORT) {
|
||||
sendMail = async templateArgs => {
|
||||
const transport = transporter()
|
||||
transport.use('compile', htmlToText({
|
||||
ignoreImage: true,
|
||||
wordwrap: false,
|
||||
}))
|
||||
transport.use(
|
||||
'compile',
|
||||
htmlToText({
|
||||
ignoreImage: true,
|
||||
wordwrap: false,
|
||||
}),
|
||||
)
|
||||
await transport.sendMail({
|
||||
from: '"Human Connection" <info@human-connection.org>',
|
||||
...templateArgs,
|
||||
})
|
||||
}
|
||||
} else {
|
||||
sendMail = () => { }
|
||||
sendMail = () => {}
|
||||
if (process.env.NODE_ENV !== 'test') {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('Warning: Email middleware will not try to send mails.')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user