bump ver,system.get更换为同步操作

This commit is contained in:
undefined committed 2020-09-26 18:39:15 +08:00
1 parent 99b7d33157
commit 03d199fe9d
19 files changed
+100 -111

No files matched your search

+2 -2
View File
@@ -34,11 +34,11 @@ const checks: Dictionary<CheckItem> = {
}
},
async checkMail(ctx, log, warn) {
const from = await system.get('smtp.from');
const from = system.get('smtp.from');
if (!from) warn('SMTP account was not provided, email verification disabled.');
},
async checkIpHeader(ctx, log, warn) {
const header = await system.get('server.xff');
const header = system.get('server.xff');
if (header && !ctx.request.ip) warn('IP header seems incorrect.\nCheck dashboard>settings>server.');
},
};