From b46aa268d5705085f92a91c7aa1292a859674722 Mon Sep 17 00:00:00 2001 From: Neko-Life Date: Sat, 31 Jul 2021 12:58:09 +0700 Subject: [PATCH] fix: wrong fix --- cmds/moderation/src/createSchedule.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds/moderation/src/createSchedule.js b/cmds/moderation/src/createSchedule.js index 8499e2e..46ddc44 100644 --- a/cmds/moderation/src/createSchedule.js +++ b/cmds/moderation/src/createSchedule.js @@ -32,12 +32,12 @@ async function createSchedule(client, { guildID, userID, type, until }) { }, date: until }; - jobs.push(SC); try { await jobManager.remove(NAME).catch(() => { }); if ((until.valueOf() - CHK) < new Date(24 * 60 * 60 * 1000)) { jobManager.add(SC); + jobs.push(SC); jobManager.start(NAME); if (until.valueOf() < CHK) { console.log("RUNNING IMMEDIATELY");