From 9b2d4ba516a51ce49a876a8517060bfdfee8d8e1 Mon Sep 17 00:00:00 2001 From: ilham Date: Mon, 3 Jan 2022 12:59:46 +0700 Subject: [PATCH] fix: transaction for dashboard partner --- src/transaction/transaction.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction/transaction.service.ts b/src/transaction/transaction.service.ts index f730009..e222156 100644 --- a/src/transaction/transaction.service.ts +++ b/src/transaction/transaction.service.ts @@ -1117,7 +1117,7 @@ export class TransactionService { const baseQuery = this.transactionRepository .createQueryBuilder('transactions') .innerJoin('transactions.product_price', 'product_price') - .where('transactions.type = 1') + .where('transactions.type = 1 and transactions.status = 1') .andWhere('transactions.user = :id', { id: userData.id, });