cfg(torrents): add settings item for mailTicketService enable

This commit is contained in:
OldHawk
2018-03-22 17:21:52 +08:00
parent 416434ad02
commit 4394fb327f
2 changed files with 5 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ module.exports = {
app: {
name: commonEnvConfig.variable.site.site_name,
domain: commonEnvConfig.variable.site.site_domain,
mailTicketService: true,
showDemoWarningPopup: true,
cronTimeZone: 'Asia/Shanghai',
showDebugLog: commonEnvConfig.variable.settings.console_debug_info || true

View File

@@ -67,7 +67,10 @@ module.exports = function (app) {
cronJobs.push(removeGhostPeers());
cronJobs.push(countUsersHnrWarning());
cronJobs.push(listenServiceEmail());
if (appConfig.mailTicketService) {
cronJobs.push(listenServiceEmail());
}
return cronJobs;
};