mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-17 16:06:38 +08:00
update
Signed-off-by: wozulong <>
This commit is contained in:
parent
8d83630d85
commit
a9e3555cac
@ -260,11 +260,11 @@ func DeleteOldLog(ctx context.Context, targetTimestamp int64, limit int) (int64,
|
||||
return total, result.Error
|
||||
}
|
||||
|
||||
if 0 == result.RowsAffected {
|
||||
total += result.RowsAffected
|
||||
|
||||
if result.RowsAffected < int64(limit) {
|
||||
break
|
||||
}
|
||||
|
||||
total += result.RowsAffected
|
||||
}
|
||||
|
||||
return total, nil
|
||||
|
Loading…
Reference in New Issue
Block a user