Skip to content

Commit

Permalink
do not fire TICKET_ASSIGNED if the ticket is not yet confirmed
Browse files Browse the repository at this point in the history
  • Loading branch information
cbellone committed Jan 19, 2020
1 parent 0868b24 commit d33063a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/alfio/manager/ExtensionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ void handleReservationConfirmation(TicketReservation reservation, BillingDetails
}

void handleTicketAssignment(Ticket ticket) {
if(ticket.getStatus() == Ticket.TicketStatus.ACQUIRED) {
return; // ignore tickets if the reservation is not yet confirmed
}
int eventId = ticket.getEventId();
int organizationId = eventRepository.findOrganizationIdByEventId(eventId);
Event event = eventRepository.findById(eventId);
Expand Down

0 comments on commit d33063a

Please sign in to comment.