fix: transaction for dashboard partner

This commit is contained in:
ilham 2022-01-03 12:59:46 +07:00
parent 15a886eac0
commit 9b2d4ba516

View File

@ -1117,7 +1117,7 @@ export class TransactionService {
const baseQuery = this.transactionRepository const baseQuery = this.transactionRepository
.createQueryBuilder('transactions') .createQueryBuilder('transactions')
.innerJoin('transactions.product_price', 'product_price') .innerJoin('transactions.product_price', 'product_price')
.where('transactions.type = 1') .where('transactions.type = 1 and transactions.status = 1')
.andWhere('transactions.user = :id', { .andWhere('transactions.user = :id', {
id: userData.id, id: userData.id,
}); });