- Added filter by Partner Trx Id for transaction history
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user