Fix ignored downloads not being saved for Queue Cleaner (#353)

fixed ignored downloads not being saved for Queue Cleaner
This commit is contained in:
Flaminel
2025-10-31 17:39:52 +02:00
committed by GitHub
parent 97f63434fd
commit 402677b69b
2 changed files with 3 additions and 0 deletions

View File

@@ -13,4 +13,6 @@ public sealed record UpdateQueueCleanerConfigRequest
public FailedImportConfig FailedImport { get; init; } = new();
public ushort DownloadingMetadataMaxStrikes { get; init; }
public List<string> IgnoredDownloads { get; set; } = [];
}

View File

@@ -69,6 +69,7 @@ public sealed class QueueCleanerConfigController : ControllerBase
oldConfig.UseAdvancedScheduling = newConfigDto.UseAdvancedScheduling;
oldConfig.FailedImport = newConfigDto.FailedImport;
oldConfig.DownloadingMetadataMaxStrikes = newConfigDto.DownloadingMetadataMaxStrikes;
oldConfig.IgnoredDownloads = newConfigDto.IgnoredDownloads;
await _dataContext.SaveChangesAsync();