mirror of
https://github.com/danbulant/Shasha
synced 2026-06-19 06:11:26 +00:00
fix: wrong fix
This commit is contained in:
parent
0d2d178b48
commit
b46aa268d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue