mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-05 13:02:10 +00:00
style(notifications): fix object initializer indentation in NotificationFeedService
This commit is contained in:
parent
aad3facaf1
commit
c9fa4a49af
1 changed files with 10 additions and 10 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue