mostly working ticket selection for non-seatplan

This commit is contained in:
2023-08-07 17:35:20 +02:00
parent ed38edd880
commit 9b7eb913ae
5 changed files with 68 additions and 46 deletions

View File

@@ -35,11 +35,10 @@ class TicketGenerator {
this.runningTickets = {};
}
// TODO: Save to disk / DB in case of crash of server / reboot / whatever
// and continue processing once back online
// TODO: continue processing once back online
generateTickets ( order ) {
this.ticketQueue[ this.jobId ] = { 'order': order };
this.runningTickets[ order ] = 'processing';
this.runningTickets[ order.tok ] = 'processing';
this.jobId += 1;
this.queueHandler();
}