From 639e15e95a775c65049a0f042e859aa4bee700f6 Mon Sep 17 00:00:00 2001 From: Neko-Life Date: Wed, 11 Aug 2021 23:50:53 +0700 Subject: [PATCH] remove unnecessary log --- cmds/moderation/src/createSchedule.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cmds/moderation/src/createSchedule.js b/cmds/moderation/src/createSchedule.js index d085f47..5a3bc9b 100644 --- a/cmds/moderation/src/createSchedule.js +++ b/cmds/moderation/src/createSchedule.js @@ -65,12 +65,11 @@ async function reset() { await jobManager.stop().catch(console.error); for (const job of jobs) { await jobManager.remove(job.name).catch(console.error); - console.log("REMOVED " + job.name); } await jobLoad(); jobManager.add(jobs); - console.log("SCHEDULER REFRESHED"); + console.log("JOBS REFRESHED"); return jobStart(); } @@ -90,7 +89,7 @@ async function jobLoad() { }; jobs.push(rsttm); console.log((jobs.length - 1) + " JOBS LOADED"); - return 1; + return 0; } function jobStart() { @@ -100,7 +99,7 @@ function jobStart() { if (v.date?.valueOf() < CHK) jobManager.run(v.name); }); console.log("SCHEDULER STARTED"); - return 1; + return 0; } module.exports = { createSchedule, init, reset } \ No newline at end of file