diff --git a/src/helper/irs-api.ts b/src/helper/irs-api.ts index 75818b1..4ee235c 100644 --- a/src/helper/irs-api.ts +++ b/src/helper/irs-api.ts @@ -21,17 +21,7 @@ export const doTransaction = async ( axios.get(`${irs_url}?id=${irs_id}&pin=${irs_pin}&user=${irs_user}&pass=${irs_pass}&kodeproduk=${productCode}&tujuan=${destination}&counter=1&idtrx=${idtrx}`) .then(res => { // Handle successful response - if (res.data.includes('saldo tidak cukup')) { - throw new HttpException( - { - statusCode: HttpStatus.INTERNAL_SERVER_ERROR, - error: 'maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali', - }, - HttpStatus.INTERNAL_SERVER_ERROR, - ); - } else { return res.data; - } }) .catch(e => { // Handle error