Enhance code readability and maintainability by refactoring various components. Update formatting commands in CLAUDE.md for csharpier integration. Simplify method signatures in SegmentFiles, UploadLimits, and multiple endpoint classes for improved clarity. Adjust query handlers and command handlers to streamline parameter handling and enhance consistency across the application.
This commit is contained in:
+4
-1
@@ -20,7 +20,10 @@ public sealed class ListCollectionsQueryHandler(IAppDbContext dbContext)
|
||||
|
||||
// Единиц воспроизведения может быть больше, чем частей: сериал внутри коллекции
|
||||
// разворачивается в свои серии.
|
||||
var showIds = collections.SelectMany(c => c.Items.Select(i => i.ShowId)).Distinct().ToList();
|
||||
var showIds = collections
|
||||
.SelectMany(c => c.Items.Select(i => i.ShowId))
|
||||
.Distinct()
|
||||
.ToList();
|
||||
var episodeCounts = await dbContext
|
||||
.Shows.AsNoTracking()
|
||||
.Where(s => showIds.Contains(s.Id))
|
||||
|
||||
+2
-1
@@ -4,4 +4,5 @@ using TeleWave.Application.Common.Models;
|
||||
namespace TeleWave.Application.Library.Collections.SetCollectionPoster;
|
||||
|
||||
/// <summary>Привязать/снять постер коллекции (<paramref name="ImageId"/> = null — отвязать).</summary>
|
||||
public sealed record SetCollectionPosterCommand(Guid CollectionId, Guid? ImageId) : ICommand<Result>;
|
||||
public sealed record SetCollectionPosterCommand(Guid CollectionId, Guid? ImageId)
|
||||
: ICommand<Result>;
|
||||
|
||||
Reference in New Issue
Block a user