- Added filter by Partner Trx Id for transaction history

This commit is contained in:
2023-05-10 14:14:10 +07:00
parent 5d039499e5
commit 8d15f6f4be
2 changed files with 12 additions and 0 deletions

View File

@@ -1886,6 +1886,7 @@ export class TransactionService {
startDate: string,
endDate: string,
trxId: string,
partnerTrxId: string,
pageSize?: number,
) {
const userData = await this.userService.findExist(user);
@@ -1966,6 +1967,13 @@ export class TransactionService {
trxId: trxId
},
);
} else if (partnerTrxId != null) {
baseQuery.andWhere(
'transaction.partner_trx_id = :partnerTrxId',
{
partnerTrxId: partnerTrxId
},
);
}
const data = await baseQuery