diff options
| author | Bond_009 <bond.009@outlook.com> | 2022-02-15 18:59:46 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2022-02-15 18:59:46 +0100 |
| commit | 5732e6188c78e9e0de4a5557bfa9cfa64e05b506 (patch) | |
| tree | e3cd0ffe83f6202e949b864ba815e45bcd859ab7 /Emby.Server.Implementations/ScheduledTasks/Tasks/CleanActivityLogTask.cs | |
| parent | 5825a0572bdcd11afad283f1e62c07f5e2c61c06 (diff) | |
Fix some warnings
Diffstat (limited to 'Emby.Server.Implementations/ScheduledTasks/Tasks/CleanActivityLogTask.cs')
| -rw-r--r-- | Emby.Server.Implementations/ScheduledTasks/Tasks/CleanActivityLogTask.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/ScheduledTasks/Tasks/CleanActivityLogTask.cs b/Emby.Server.Implementations/ScheduledTasks/Tasks/CleanActivityLogTask.cs index 79886cb52..776079044 100644 --- a/Emby.Server.Implementations/ScheduledTasks/Tasks/CleanActivityLogTask.cs +++ b/Emby.Server.Implementations/ScheduledTasks/Tasks/CleanActivityLogTask.cs @@ -57,12 +57,12 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasks public bool IsLogged => true; /// <inheritdoc /> - public Task Execute(CancellationToken cancellationToken, IProgress<double> progress) + public Task ExecuteAsync(IProgress<double> progress, CancellationToken cancellationToken) { var retentionDays = _serverConfigurationManager.Configuration.ActivityLogRetentionDays; if (!retentionDays.HasValue || retentionDays < 0) { - throw new Exception($"Activity Log Retention days must be at least 0. Currently: {retentionDays}"); + throw new InvalidOperationException($"Activity Log Retention days must be at least 0. Currently: {retentionDays}"); } var startDate = DateTime.UtcNow.AddDays(-retentionDays.Value); |
