Added removal of cache when not needed
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -20,5 +20,6 @@ export default function loadCronEvents() {
|
||||
cron.time.dayOfWeek
|
||||
|
||||
new CronJob(time, cron.execute, cron.onComplete, cron.start, cron.timeZone).start()
|
||||
delete require.cache[require.resolve(filePath)]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user