diff --git a/src/controllers/template.controller.ts b/src/controllers/template.controller.ts index cf93cf2..317f8cf 100644 --- a/src/controllers/template.controller.ts +++ b/src/controllers/template.controller.ts @@ -230,7 +230,7 @@ export class TemplateController { // 检查是否有任务在5分钟内开始 const recentTasks = processingTasks.filter( - (task) => task.startedAt && task.startedAt > fiveMinutesAgo, + (task) => task.startedAt && task.startedAt.getTime() > fiveMinutesAgo.getTime(), ); if (recentTasks.length > 0) {