fix: #9339, only log email errors once per digest, notification push

show notice in acp
This commit is contained in:
Barış Soner Uşaklı
2021-03-05 19:03:16 -05:00
parent 3f42d40c78
commit 3aa26c4df2
6 changed files with 35 additions and 7 deletions

View File

@@ -13,6 +13,7 @@ const plugins = require('../../plugins');
const user = require('../../user');
const topics = require('../../topics');
const utils = require('../../utils');
const emailer = require('../../emailer');
const dashboardController = module.exports;
@@ -56,6 +57,13 @@ async function getNotices() {
},
];
if (emailer.fallbackNotFound) {
notices.push({
done: false,
notDoneText: '[[admin/dashboard:fallback-emailer-not-found]]',
});
}
if (global.env !== 'production') {
notices.push({
done: false,