Fixed: (History) Reduce History Cleanup Days to 30

pull/1760/head
Bogdan 11 months ago
parent 18e2757d37
commit a1abcd6c93

@ -31,7 +31,7 @@ namespace NzbDrone.Core.Test.Configuration
[Test]
public void Get_value_should_return_default_when_no_value()
{
Subject.HistoryCleanupDays.Should().Be(365);
Subject.HistoryCleanupDays.Should().Be(30);
}
[Test]
@ -46,7 +46,7 @@ namespace NzbDrone.Core.Test.Configuration
public void get_value_with_out_persist_should_not_store_default_value()
{
var interval = Subject.HistoryCleanupDays;
interval.Should().Be(365);
interval.Should().Be(30);
Mocker.GetMock<IConfigRepository>().Verify(c => c.Insert(It.IsAny<Config>()), Times.Never());
}

@ -77,7 +77,7 @@ namespace NzbDrone.Core.Configuration
public int HistoryCleanupDays
{
get { return GetValueInt("HistoryCleanupDays", 365); }
get { return GetValueInt("HistoryCleanupDays", 30); }
set { SetValue("HistoryCleanupDays", value); }
}

Loading…
Cancel
Save