You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: service/singleton/singleton.go
+75Lines changed: 75 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -152,6 +152,10 @@ func CleanMonitorHistory() {
152
152
// server_id = 0 的数据会用于/service页面的可用性展示
153
153
DB.Unscoped().Delete(&model.MonitorHistory{}, "(created_at < ? AND server_id != 0) OR monitor_id NOT IN (SELECT `id` FROM monitors)", time.Now().AddDate(0, 0, -1))
154
154
DB.Unscoped().Delete(&model.Transfer{}, "server_id NOT IN (SELECT `id` FROM servers)")
0 commit comments