style(uplift): fix comment indentation in queue list query

This commit is contained in:
Alexandre Brandizzi 2026-09-17 03:56:18 -03:00
parent 468522c3f7
commit 9388e7a987

View file

@ -25,13 +25,13 @@ namespace SeaHaven.DataServices.Implementation
from v in vendors.DefaultIfEmpty()
join ev in _context.VendorCompletionDocuments on u.EvidenceDocumentId equals ev.Id into evidences
from ev in evidences.DefaultIfEmpty()
// SH-207: resolve the work order through the same primary-plus-linked
// convention the sibling reads use (GetWorkOrderIdForUpliftAsync,
// GetApprovedExposureForWorkOrdersAsync). A dispatch whose work order is
// linked only through DispatchWorkOrders still surfaces its work-order id,
// flattened WO context, the closed flag, and approved exposure. The
// effective id feeds a single work-order lookup so every field resolves
// from one row.
// SH-207: resolve the work order through the same primary-plus-linked
// convention the sibling reads use (GetWorkOrderIdForUpliftAsync,
// GetApprovedExposureForWorkOrdersAsync). A dispatch whose work order is
// linked only through DispatchWorkOrders still surfaces its work-order id,
// flattened WO context, the closed flag, and approved exposure. The
// effective id feeds a single work-order lookup so every field resolves
// from one row.
let effectiveWorkOrderId = d.WorkOrderId
?? d.DispatchWorkOrders!.Select(link => (int?)link.WorkOrderId).FirstOrDefault()
let workOrder = _context.workOrders