mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: (History) Reduce History Cleanup Days to 30
This commit is contained in:
@@ -31,7 +31,7 @@ namespace NzbDrone.Core.Test.Configuration
|
|||||||
[Test]
|
[Test]
|
||||||
public void Get_value_should_return_default_when_no_value()
|
public void Get_value_should_return_default_when_no_value()
|
||||||
{
|
{
|
||||||
Subject.HistoryCleanupDays.Should().Be(365);
|
Subject.HistoryCleanupDays.Should().Be(30);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@@ -46,7 +46,7 @@ namespace NzbDrone.Core.Test.Configuration
|
|||||||
public void get_value_with_out_persist_should_not_store_default_value()
|
public void get_value_with_out_persist_should_not_store_default_value()
|
||||||
{
|
{
|
||||||
var interval = Subject.HistoryCleanupDays;
|
var interval = Subject.HistoryCleanupDays;
|
||||||
interval.Should().Be(365);
|
interval.Should().Be(30);
|
||||||
Mocker.GetMock<IConfigRepository>().Verify(c => c.Insert(It.IsAny<Config>()), Times.Never());
|
Mocker.GetMock<IConfigRepository>().Verify(c => c.Insert(It.IsAny<Config>()), Times.Never());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -77,7 +77,7 @@ namespace NzbDrone.Core.Configuration
|
|||||||
|
|
||||||
public int HistoryCleanupDays
|
public int HistoryCleanupDays
|
||||||
{
|
{
|
||||||
get { return GetValueInt("HistoryCleanupDays", 365); }
|
get { return GetValueInt("HistoryCleanupDays", 30); }
|
||||||
set { SetValue("HistoryCleanupDays", value); }
|
set { SetValue("HistoryCleanupDays", value); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user