Build issue resolution

This commit is contained in:
Stephanos A
2026-07-18 19:51:27 +03:00
parent 6ddcc73847
commit 554baf2595
2 changed files with 2 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ export class ReportsService {
where: { departureAt: { gte: dateFrom, lte: dateTo } },
include: {
coachAssignments: { include: { coach: { include: { seats: true } } } },
bookings: { include: { seats: true } },
bookings: { include: { seats: { where: { scheduleId: schedule.id } } } },
},
});
@@ -212,6 +212,7 @@ export class ReportsService {
where: { status: { in: ['CONFIRMED', 'BOARDED'] } },
include: {
seats: {
where: { scheduleId },
include: {
seat: { include: { coach: { include: { coachType: true } } } },
},