- fix response elang when balance supplier not enough

This commit is contained in:
Muhammad Fadli 2023-09-12 13:04:38 +07:00
parent 49d435a70e
commit e4811a4ad6

View File

@ -779,7 +779,7 @@ export class TransactionService {
throw new HttpException( throw new HttpException(
{ {
statusCode: HttpStatus.INTERNAL_SERVER_ERROR, statusCode: HttpStatus.INTERNAL_SERVER_ERROR,
error: 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,
}, },
HttpStatus.INTERNAL_SERVER_ERROR, HttpStatus.INTERNAL_SERVER_ERROR,
); );