Merge branch 'development' into 'devops-staging'

fix: transaction for dashboard partner

See merge request empatnusabangsa/ppob/ppob-backend!80
This commit is contained in:
ilham dwi pratama 2022-01-03 06:00:51 +00:00
commit 04d7e9f15c

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,
}); });