mirror of
https://github.com/linux-do/new-api.git
synced 2025-12-25 08:05:56 +08:00
optimized blocking issue during bulk log data deletion
Signed-off-by: wozulong <>
This commit is contained in:
@@ -192,7 +192,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,
|
||||
|
||||
Reference in New Issue
Block a user