mirror of
https://github.com/danbulant/Shasha
synced 2026-07-06 03:21:00 +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
|
date: until
|
||||||
};
|
};
|
||||||
jobs.push(SC);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await jobManager.remove(NAME).catch(() => { });
|
await jobManager.remove(NAME).catch(() => { });
|
||||||
if ((until.valueOf() - CHK) < new Date(24 * 60 * 60 * 1000)) {
|
if ((until.valueOf() - CHK) < new Date(24 * 60 * 60 * 1000)) {
|
||||||
jobManager.add(SC);
|
jobManager.add(SC);
|
||||||
|
jobs.push(SC);
|
||||||
jobManager.start(NAME);
|
jobManager.start(NAME);
|
||||||
if (until.valueOf() < CHK) {
|
if (until.valueOf() < CHK) {
|
||||||
console.log("RUNNING IMMEDIATELY");
|
console.log("RUNNING IMMEDIATELY");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue