Address code review feedback - improve null checks

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-22 14:48:11 +00:00
co-authored by whyour
parent 1124040eeb
commit a56f2393a4
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -143,7 +143,9 @@ export default async () => {
continue;
}
// 收集需要重置的任务 ID
idsToReset.push(cron.id!);
if (cron.id) {
idsToReset.push(cron.id);
}
}
// 批量更新所有需要重置的任务