calculateGlobal everytime statistics change

This commit is contained in:
Christer Warén 2021-01-07 02:58:53 +02:00
parent 0e9034a270
commit 2b52e8641c

View File

@ -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);
}