This commit is contained in:
Dragon Fire
2020-11-19 17:05:56 -05:00
parent 8cdba0ff30
commit 6674de1be9
+1 -1
View File
@@ -7,7 +7,7 @@ module.exports = class TimerManager {
async fetchAll() {
const timers = await Redis.db.hgetall('timer');
for (const data of Object.keys(timers)) {
for (let data of Object.keys(timers)) {
data = JSON.parse(data);
await this.setTimer(data.channelID, new Date(data.time) - new Date(), data.userID, data.title, false);
}