Update Statistics class

This commit is contained in:
Christer Warén 2021-09-16 05:35:12 +03:00
parent ee08232128
commit cc3b2a50cf

View File

@ -27,14 +27,14 @@ module.exports = class {
} }
calculateGlobal(client){ calculateGlobal(client){
if(!client.stations.list) return; if(!client.stations) return;
if(!client.datastore.map) return; if(!client.datastore.map) return;
let guilds = client.datastore.map.keys(); let guilds = client.datastore.map.keys();
let stations = client.stations.list; let stations = client.stations;
let statistics = {}; let statistics = {};
if(!client.stations.list) return; if(!client.stations) return;
let calculation = guilds.next(); let calculation = guilds.next();