From 3b7d7ea80b36e4a8c259f67d54d992995c83b0e4 Mon Sep 17 00:00:00 2001 From: shancheas Date: Wed, 20 Nov 2024 14:44:19 +0700 Subject: [PATCH] fix: don't merge queue when customer name is empty --- .../queue/infrastructure/handlers/transaction.handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/queue/infrastructure/handlers/transaction.handler.ts b/src/modules/queue/infrastructure/handlers/transaction.handler.ts index 865767f..a6c3797 100644 --- a/src/modules/queue/infrastructure/handlers/transaction.handler.ts +++ b/src/modules/queue/infrastructure/handlers/transaction.handler.ts @@ -70,7 +70,7 @@ export class QueueTransactionHandler ); const insertTickets = []; - if (existTicket) { + if (customer_name && customer_phone && existTicket) { existTicket.items = items; insertTickets.push(existTicket); await this.ticketService.updateQueueTicket(existTicket);