Ticketing updates

This commit is contained in:
Stephanos A
2026-07-22 14:06:00 +03:00
parent 698dbd47e6
commit 2632e2d50c
2 changed files with 19 additions and 14 deletions

View File

@@ -360,7 +360,7 @@ export class TicketsService {
// blocked by another booking.
const seatIds = (booking as any).seats.map((bs: any) => bs.seatId);
await this.prisma.seatBlock.deleteMany({
where: { seatId: { in: seatIds }, blockedBy: 'SYSTEM', approvedBy: 'SYSTEM' },
where: { seatId: { in: seatIds }, blockedBy: 'SYSTEM' },
});
// Check for seat conflicts — only seats confirmed/boarded by a *different* booking