mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
Merge pull request #6495 from qsniyg/zero-activity-days
Allow zero activity log retention days
This commit is contained in:
commit
620dd94970
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasks
|
||||||
public Task Execute(CancellationToken cancellationToken, IProgress<double> progress)
|
public Task Execute(CancellationToken cancellationToken, IProgress<double> progress)
|
||||||
{
|
{
|
||||||
var retentionDays = _serverConfigurationManager.Configuration.ActivityLogRetentionDays;
|
var retentionDays = _serverConfigurationManager.Configuration.ActivityLogRetentionDays;
|
||||||
if (!retentionDays.HasValue || retentionDays <= 0)
|
if (!retentionDays.HasValue || retentionDays < 0)
|
||||||
{
|
{
|
||||||
throw new Exception($"Activity Log Retention days must be at least 0. Currently: {retentionDays}");
|
throw new Exception($"Activity Log Retention days must be at least 0. Currently: {retentionDays}");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue