mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-03-31 06:24:00 -04:00
Swapped mail function parameters. Replaced throw errors for log warnings. Implemented fallback language in translation.js. Added express-locale for future web i18n use
This commit is contained in:
@@ -49,7 +49,7 @@ module.exports = {
|
||||
send: (to, voucher) => {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
// Create new translator
|
||||
const t = translation('en', 'email');
|
||||
const t = translation('email');
|
||||
|
||||
// Attempt to send mail via SMTP transport
|
||||
const result = await transport.sendMail({
|
||||
|
||||
Reference in New Issue
Block a user