修改任务启动参数

This commit is contained in:
whyour
2022-09-21 21:28:31 +08:00
parent ae891f8e55
commit 36f4c3c02c
5 changed files with 7 additions and 13 deletions
+2 -4
View File
@@ -18,13 +18,12 @@ export default async () => {
tokenCommand = `node ${tokenFile}`;
}
const cron = {
id: 'token',
id: NaN,
name: '生成token',
command: tokenCommand,
};
scheduleService.createIntervalTask(cron as any, {
scheduleService.createIntervalTask(cron, {
days: 28,
runImmediately: true,
});
// 运行删除日志任务
@@ -37,7 +36,6 @@ export default async () => {
};
scheduleService.createIntervalTask(cron, {
days: data.info.frequency,
runImmediately: true,
});
}