feat: optimized spider, task pages

This commit is contained in:
Marvin Zhang
2024-10-17 20:11:30 +08:00
parent 7a4d92fae6
commit 2bb697446b

View File

@@ -53,6 +53,11 @@ func GetTaskById(c *gin.Context) {
return
}
// schedule
if !t.ScheduleId.IsZero() {
t.Schedule, _ = service.NewModelServiceV2[models.ScheduleV2]().GetById(t.ScheduleId)
}
// task stat
t.Stat, _ = service.NewModelServiceV2[models.TaskStatV2]().GetById(id)