Tickettyp entfernt
This commit is contained in:
@@ -26,12 +26,8 @@ export class TicketsService {
|
||||
});
|
||||
|
||||
try {
|
||||
// Generate QR code buffer with same format as frontend
|
||||
const qrCodeData = JSON.stringify({
|
||||
id: ticket.id,
|
||||
type: ticket.ticketType
|
||||
});
|
||||
const qrCodeBuffer = await QRCode.toBuffer(qrCodeData, {
|
||||
// Generate QR code buffer with ticket ID only
|
||||
const qrCodeBuffer = await QRCode.toBuffer(ticket.id, {
|
||||
errorCorrectionLevel: 'H', // High error correction
|
||||
type: 'png', // Output as PNG image
|
||||
width: 250, // QR code width
|
||||
@@ -74,12 +70,8 @@ export class TicketsService {
|
||||
}
|
||||
|
||||
try {
|
||||
// Generate QR code buffer with same format as frontend
|
||||
const qrCodeData = JSON.stringify({
|
||||
id: ticket.id,
|
||||
type: ticket.ticketType
|
||||
});
|
||||
const qrCodeBuffer = await QRCode.toBuffer(qrCodeData, {
|
||||
// Generate QR code buffer with ticket ID only
|
||||
const qrCodeBuffer = await QRCode.toBuffer(ticket.id, {
|
||||
errorCorrectionLevel: 'H',
|
||||
type: 'png',
|
||||
width: 250,
|
||||
|
||||
Reference in New Issue
Block a user