fix: don't merge queue when customer name is empty
continuous-integration/drone/push Build is passing Details

pull/115/head
shancheas 2024-11-20 14:44:19 +07:00
parent 3b19484f29
commit 3b7d7ea80b
1 changed files with 1 additions and 1 deletions

View File

@ -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);