test smtp email default locale is en

This commit is contained in:
lesion
2021-10-19 16:38:10 +02:00
parent 44f1e56b0b
commit d074ef39fa

View File

@@ -133,7 +133,7 @@ const settingsController = {
await settingsController.set('smtp', smtp.smtp) await settingsController.set('smtp', smtp.smtp)
const mail = require('../mail') const mail = require('../mail')
try { try {
await mail._send(settingsController.settings.admin_email, 'test') await mail._send(settingsController.settings.admin_email, 'test', null, 'en')
return res.sendStatus(200) return res.sendStatus(200)
} catch (e) { } catch (e) {
console.error(e) console.error(e)