@@ -31,7 +31,7 @@ namespace YhCore.Tasks.Jobs
|
||||
|
||||
try
|
||||
{
|
||||
var oldList = await repo.FindAsync(l => l.CreateTime < cutoff);
|
||||
var oldList = await repo.FindTrackedAsync(l => l.CreateTime < cutoff);
|
||||
if (oldList.Count == 0)
|
||||
{
|
||||
logger.LogInformation("审计日志清理完成:无 30 天前的数据");
|
||||
|
||||
Reference in New Issue
Block a user