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:
+3
-4
@@ -108,11 +108,10 @@ public sealed class RenderBumperPreviewCommandHandler(
|
||||
var names = await (
|
||||
from slot in dbContext.Slots.AsNoTracking()
|
||||
join layer in dbContext.GridLayers.AsNoTracking() on slot.LayerId equals layer.Id
|
||||
join item in dbContext.GroupItems.AsNoTracking()
|
||||
on slot.GroupId equals item.GroupId
|
||||
join item in dbContext.GroupItems.AsNoTracking() on slot.GroupId equals item.GroupId
|
||||
join show in dbContext.Shows.AsNoTracking() on item.ElementId equals show.Id
|
||||
where layer.TemplateId == channel.TemplateId
|
||||
&& item.ElementKind == GroupElementKind.Show
|
||||
where
|
||||
layer.TemplateId == channel.TemplateId && item.ElementKind == GroupElementKind.Show
|
||||
select show.Name
|
||||
)
|
||||
.Distinct()
|
||||
|
||||
@@ -50,5 +50,4 @@ public static class ChannelErrors
|
||||
"Channels.InvalidBumperFile",
|
||||
"Недопустимый файл заставки (формат или размер)."
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user