Browse Source

Fix emails

tags/v2.2.0
Chocobozzz 4 months ago
parent
commit
03fc19281b
No known key found for this signature in database GPG Key ID: 583A612D890159BE
2 changed files with 4 additions and 3 deletions
  1. +1
    -0
      scripts/build/server.sh
  2. +3
    -3
      server/lib/emailer.ts

+ 1
- 0
scripts/build/server.sh 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"

+ 3
- 3
server/lib/emailer.ts 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 }))
}
}



Loading…
Cancel
Save