Refactor various classes to initialize lists with empty array syntax for improved clarity and consistency. Update Program.cs to remove unnecessary partial class declaration due to changes in ASP.NET Core 10. Enhance MediaPathResolver by making AssetRelativePath static for better accessibility. Adjust MediaClaimingBackgroundService to centralize idle polling logic. Improve SignalQueue's WaitAsync method for clearer intent in signal draining.
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ public sealed class ListCollectionsQueryHandler(IAppDbContext dbContext)
|
||||
var episodeCounts = await dbContext
|
||||
.Shows.AsNoTracking()
|
||||
.Where(s => showIds.Contains(s.Id))
|
||||
.Select(s => new { s.Id, Count = s.Episodes.Count })
|
||||
.Select(s => new { s.Id, s.Episodes.Count })
|
||||
.ToDictionaryAsync(x => x.Id, x => x.Count, cancellationToken);
|
||||
|
||||
return collections
|
||||
|
||||
Reference in New Issue
Block a user