style(notifications): fix object initializer indentation in NotificationFeedService

This commit is contained in:
Alexandre Brandizzi 2026-09-18 13:09:46 -03:00
parent aad3facaf1
commit c9fa4a49af

View file

@ -157,20 +157,20 @@ namespace SeaHaven.Services.Implementation
.ThenByDescending(pair => pair.Right.Id) .ThenByDescending(pair => pair.Right.Id)
.Take(SectionItemLimit) .Take(SectionItemLimit)
.Select(pair => new NotificationItemDto .Select(pair => new NotificationItemDto
{ {
Id = $"vendor-conflict-{pair.Left.Id}-{pair.Right.Id}", Id = $"vendor-conflict-{pair.Left.Id}-{pair.Right.Id}",
Reason = NotificationReasons.VendorConflict, Reason = NotificationReasons.VendorConflict,
Severity = NotificationSeverities.Medium, Severity = NotificationSeverities.Medium,
Title = $"{(string.IsNullOrWhiteSpace(pair.Left.VendorName) ? "Vendor" : pair.Left.VendorName)} has overlapping appointments", Title = $"{(string.IsNullOrWhiteSpace(pair.Left.VendorName) ? "Vendor" : pair.Left.VendorName)} has overlapping appointments",
Count = 2, Count = 2,
TriggeredAt = pair.Left.Start < pair.Right.Start ? pair.Left.Start : pair.Right.Start, TriggeredAt = pair.Left.Start < pair.Right.Start ? pair.Left.Start : pair.Right.Start,
Target = WorkOrderTarget(pair.Left.WorkOrderId, NotificationWorkOrderTabs.Info), Target = WorkOrderTarget(pair.Left.WorkOrderId, NotificationWorkOrderTabs.Info),
WorkOrders = new[] WorkOrders = new[]
{ {
new NotificationWorkOrderRefDto { Id = pair.Left.WorkOrderId, Number = pair.Left.WorkOrderNumber }, new NotificationWorkOrderRefDto { Id = pair.Left.WorkOrderId, Number = pair.Left.WorkOrderNumber },
new NotificationWorkOrderRefDto { Id = pair.Right.WorkOrderId, Number = pair.Right.WorkOrderNumber } new NotificationWorkOrderRefDto { Id = pair.Right.WorkOrderId, Number = pair.Right.WorkOrderNumber }
} }
}).ToList(); }).ToList();
return (NotificationReasons.VendorConflict, workOrderCount, items); return (NotificationReasons.VendorConflict, workOrderCount, items);
} }