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: {