Fixed: History Cleanup failing due to AddDays method

pull/31/head
Qstick 3 years ago
parent cb046172f8
commit aa7a568754

@ -64,7 +64,9 @@ namespace NzbDrone.Core.History
public void Cleanup(int days)
{
Delete(c => c.Date.AddDays(days) <= DateTime.Now);
var cleanDate = DateTime.Now.AddDays(-1 * days);
Delete(c => c.Date <= cleanDate);
}
public History MostRecentForIndexer(int indexerId)

Loading…
Cancel
Save