feat: improve log delete api

This commit is contained in:
wzxjohn committed 2025-04-28 11:25:04 +08:00
1 parent 4f123cf9f4
commit 45073b3b2b
2 files changed
+23 -4

No files matched your search

+1 -1
View File
@@ -196,7 +196,7 @@ func DeleteHistoryLogs(c *gin.Context) {
})
return
}
count, err := model.DeleteOldLog(targetTimestamp)
count, err := model.DeleteOldLog(c.Request.Context(), targetTimestamp, 100)
if err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,