fix: ppob callback
This commit is contained in:
@@ -1399,6 +1399,36 @@ export class TransactionService {
|
||||
}
|
||||
}
|
||||
|
||||
async findAll(user: string) {
|
||||
try {
|
||||
return this.checkBillHistoryRepository.find({
|
||||
where: {
|
||||
user: user,
|
||||
},
|
||||
select: [
|
||||
'amount',
|
||||
'admin_price',
|
||||
'product_code',
|
||||
'destination',
|
||||
'trx_id',
|
||||
'partner_trx_id',
|
||||
'createdAt',
|
||||
],
|
||||
order: {
|
||||
createdAt: 'DESC',
|
||||
}
|
||||
});
|
||||
} catch (e) {
|
||||
throw new HttpException(
|
||||
{
|
||||
statusCode: HttpStatus.NOT_FOUND,
|
||||
error: 'Billing not found',
|
||||
},
|
||||
HttpStatus.NOT_FOUND,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
async topUpHistoryByUser(
|
||||
page: number,
|
||||
user: string,
|
||||
|
||||
Reference in New Issue
Block a user