Fix for statistics enabled config.

This commit is contained in:
softsimon
2020-10-19 18:47:10 +07:00
parent 3fbb51b8ee
commit ad809bae1c
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);
}