1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

db stores logs for 7 days instead of 15.

This commit is contained in:
kay.one 2013-08-29 22:20:41 -07:00
parent 87ac2b3b76
commit b8bd2bffbf

View File

@ -18,7 +18,7 @@ public LogRepository(IDatabase database, IMessageAggregator messageAggregator)
public void Trim()
{
var trimDate = DateTime.UtcNow.AddDays(-15).Date;
var trimDate = DateTime.UtcNow.AddDays(-7).Date;
Delete(c => c.Time <= trimDate);
}
}