From eae529bce9a648387fcaa3f805b0f961eabe55e2 Mon Sep 17 00:00:00 2001 From: shancheas Date: Tue, 19 Nov 2024 11:13:53 +0700 Subject: [PATCH] fix: vip pass queue register for 1 queue --- .../handlers/transaction.handler.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/modules/queue/infrastructure/handlers/transaction.handler.ts b/src/modules/queue/infrastructure/handlers/transaction.handler.ts index 61c635e..2f1ab55 100644 --- a/src/modules/queue/infrastructure/handlers/transaction.handler.ts +++ b/src/modules/queue/infrastructure/handlers/transaction.handler.ts @@ -77,15 +77,15 @@ export class QueueTransactionHandler ticket.items.forEach((item) => { const item_id = item.item_id; - for (let i = 0; i < item.qty; i++) { - const payload = { - item_id, - ticket_id, - qty: 1, - }; + // for (let i = 0; i < item.qty; i++) { + const payload = { + item_id, + ticket_id, + qty: item.qty, + }; - this.create(payload); - } + this.create(payload); + // } }); }); }