From 769e8174f477987d5f6e1d366f42d9e43a0764da Mon Sep 17 00:00:00 2001 From: shancheas Date: Mon, 13 Jan 2025 12:59:30 +0700 Subject: [PATCH] fix: don't create queue from POS --- .../queue/infrastructure/handlers/transaction.handler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/queue/infrastructure/handlers/transaction.handler.ts b/src/modules/queue/infrastructure/handlers/transaction.handler.ts index 5fc81c7..8c4710d 100644 --- a/src/modules/queue/infrastructure/handlers/transaction.handler.ts +++ b/src/modules/queue/infrastructure/handlers/transaction.handler.ts @@ -21,7 +21,8 @@ export class QueueTransactionHandler /** * If data still in process (not settled) then don't create the queue order */ - if (process_data?.status != 'settled') return; + if (process_data?.status != 'settled' || process_data?.pos_number != null) + return; const transaction = await this.dataService.getOneByOptions({ where: {