minor
This commit is contained in:
parent
658e038e66
commit
e287f3f537
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "gancio",
|
"name": "gancio",
|
||||||
"version": "1.5.0-rc.6",
|
"version": "1.5.0-rc.7",
|
||||||
"description": "A shared agenda for local communities",
|
"description": "A shared agenda for local communities",
|
||||||
"author": "lesion",
|
"author": "lesion",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -9,7 +9,7 @@ const locales = require('../../locales')
|
||||||
const mail = {
|
const mail = {
|
||||||
send (addresses, template, locals, locale) {
|
send (addresses, template, locals, locale) {
|
||||||
locale = locale || settingsController.settings.instance_locale
|
locale = locale || settingsController.settings.instance_locale
|
||||||
if (process.env.NODE_ENV === 'production' && (!settingsController.settings.admin_email || !settingsController.settings.smtp || !settingsController.settings.smtp.user)) {
|
if (process.env.NODE_ENV === 'production' && (!settingsController.settings.admin_email || !settingsController.settings.smtp)) {
|
||||||
log.error(`Cannot send any email: SMTP Email configuration not completed!`)
|
log.error(`Cannot send any email: SMTP Email configuration not completed!`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue