mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Fix
This commit is contained in:
@@ -7,7 +7,7 @@ module.exports = class TimerManager {
|
||||
|
||||
async fetchAll() {
|
||||
const timers = await Redis.db.hgetall('timer');
|
||||
for (let data of Object.keys(timers)) {
|
||||
for (let data of Object.values(timers)) {
|
||||
data = JSON.parse(data);
|
||||
await this.setTimer(data.channelID, new Date(data.time) - new Date(), data.userID, data.title, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user