Skip to content

Commit 862657e

Browse files
authored
Merge pull request #83 from komari-monitor/dev
feat: 在获取的任务中添加间隔时间字段
2 parents 6600e40 + 70b519a commit 862657e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

api/record/record.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ func GetPingRecords(c *gin.Context) {
9797
// 只返回有记录的任务
9898
if _, ok := taskIdSet[t.Id]; ok {
9999
tasksList = append(tasksList, gin.H{
100-
"id": t.Id,
101-
"name": t.Name,
100+
"id": t.Id,
101+
"name": t.Name,
102+
"interval": t.Interval,
102103
})
103104
}
104105
}

0 commit comments

Comments
 (0)