From 5eafea9fe2283d5eebf0453215d11be27bb2da32 Mon Sep 17 00:00:00 2001 From: lesion Date: Thu, 21 Oct 2021 12:23:47 +0200 Subject: [PATCH] fix admin_email sending --- server/notifier.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/notifier.js b/server/notifier.js index 8e1ceea7..617bce25 100644 --- a/server/notifier.js +++ b/server/notifier.js @@ -11,6 +11,7 @@ const Place = require('./api/models/place') const Tag = require('./api/models/tag') const eventController = require('./api/controller/event') +const settingsController = require('./api/controller/settings') const notifier = { @@ -22,7 +23,7 @@ const notifier = { // case 'mail': TODO: locale? // return mail.send(notification.email, 'event', { event, notification }) case 'admin_email': - p = mail.send(config.admin_email, 'event', + p = mail.send(settingsController.settings.admin_email, 'event', { event, to_confirm: !event.is_visible, notification }) promises.push(p) break