mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 22:07:32 -04:00
Fixed: (History) Reduce History Cleanup Days to 30
This commit is contained in:
parent
18e2757d37
commit
a1abcd6c93
2 changed files with 3 additions and 3 deletions
|
@ -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); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue