Seat discrepancy segment-awareness updates

This commit is contained in:
Stephanos A
2026-07-21 15:50:25 +03:00
parent 79629d1819
commit 281969c94b
2 changed files with 79 additions and 10 deletions

View File

@@ -264,13 +264,10 @@ export class ReportsService {
},
bookings: {
where: { status: { in: ["CONFIRMED", "BOARDED"] } },
include: {
seats: {
where: { leg: 1 },
include: {
seat: { include: { coach: { include: { coachType: true } } } },
},
},
select: {
id: true,
originStationId: true,
destinationStationId: true,
},
},
stopTimes: { include: { station: true }, orderBy: { sequence: "asc" } },