- fix error metro
This commit is contained in:
		| @@ -1,5 +1,5 @@ | ||||
| import axios from 'axios'; | ||||
| import {NotFoundException} from "@nestjs/common"; | ||||
| import {HttpException, HttpStatus, NotFoundException} from "@nestjs/common"; | ||||
|  | ||||
| const irs_url = 'http://h2h.elangpixiu.com/api/h2h'; | ||||
| const irs_id = 'PT0005'; | ||||
| @@ -141,8 +141,13 @@ export const doTransaction = async ( | ||||
|   } catch (err) { | ||||
|     console.log('errtransaction', err); | ||||
|     console.log('errtransaction2', err.response.data); | ||||
|     throw new NotFoundException( | ||||
|         'maaf saat ini transaksi sedang tidak bisa diproses, silahkan hubungi WND Solutions untuk bisa di proses kembali', | ||||
|  | ||||
|     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, | ||||
|     ); | ||||
|   } | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user