Fix for statistics enabled config.

This commit is contained in:
softsimon
2020-10-19 18:47:10 +07:00
parent 53f7839131
commit bdeac55c97
2 changed files with 13 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ class Routes {
private cache = {};
constructor() {
if (!config.DATABASE.ENABLED) {
if (config.DATABASE.ENABLED && config.STATISTICS.ENABLED) {
this.createCache();
setInterval(this.createCache.bind(this), 600000);
}