mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-08 18:51:29 +03:00
Fixed a few broken tests
This commit is contained in:
@@ -148,6 +148,7 @@ exports.updateTaskSchedule = async (task_key, schedule) => {
|
||||
await db_api.updateRecord('tasks', {key: task_key}, {schedule: schedule});
|
||||
if (TASKS[task_key]['job']) {
|
||||
TASKS[task_key]['job'].cancel();
|
||||
TASKS[task_key]['job'] = null;
|
||||
}
|
||||
if (schedule) {
|
||||
TASKS[task_key]['job'] = scheduleJob(task_key, schedule);
|
||||
|
||||
Reference in New Issue
Block a user