fix: sending raw data in error message

This commit is contained in:
wdhanadipa 2023-12-05 22:58:51 +07:00
parent b66b296292
commit f9ad9eb473
2 changed files with 4672 additions and 4823 deletions

View File

@ -730,8 +730,6 @@ export class TransactionService {
} }
} }
console.log(hitSupplier, 'newhitSupplier');
// const hitSupplier = { // const hitSupplier = {
// harga: 2000, // harga: 2000,
// success: true, // success: true,
@ -800,7 +798,7 @@ export class TransactionService {
throw new HttpException( throw new HttpException(
{ {
statusCode: HttpStatus.INTERNAL_SERVER_ERROR, statusCode: HttpStatus.INTERNAL_SERVER_ERROR,
error: hitSupplier.msg.includes('saldo tidak cukup') ? 'maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali' : hitSupplier.msg, error: hitSupplier.msg.includes('saldo tidak cukup') ? 'maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali' : hitSupplier.msg.includes('METRO GLOBALINDO') ? "maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali" : hitSupplier.msg
}, },
HttpStatus.INTERNAL_SERVER_ERROR, HttpStatus.INTERNAL_SERVER_ERROR,
); );

9491
yarn.lock

File diff suppressed because it is too large Load Diff