From a4d984f19c065812d66c619c944d0226f1939edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 16 Sep 2021 02:27:33 +0300 Subject: [PATCH] Update Datastore class --- src/client/classes/Datastore.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/classes/Datastore.js b/src/client/classes/Datastore.js index b18c225..dfcd07d 100644 --- a/src/client/classes/Datastore.js +++ b/src/client/classes/Datastore.js @@ -28,6 +28,8 @@ module.exports = class { } calculateGlobal(client){ + if(!client.stations) return; + let guilds = this.map.keys(); let stations = client.stations; var statistics = {};