From 2b52e8641c0ffb1d75db6e9931b7217fd1b1cb99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 7 Jan 2021 02:58:53 +0200 Subject: [PATCH] calculateGlobal everytime statistics change --- client/funcs/statisticsUpdate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/funcs/statisticsUpdate.js b/client/funcs/statisticsUpdate.js index 6e7fff2..bd8301f 100644 --- a/client/funcs/statisticsUpdate.js +++ b/client/funcs/statisticsUpdate.js @@ -22,4 +22,5 @@ module.exports = function statisticsUpdate(client, guild, radio) { radio.currentGuild.statistics[radio.station.name].used = parseInt(radio.currentGuild.statistics[radio.station.name].used)+1; client.datastore.updateEntry(guild, radio.currentGuild); + client.datastore.calculateGlobal(client); } \ No newline at end of file