- fix elang callback
This commit is contained in:
parent
ab9b0c1907
commit
cfc13d60af
|
@ -40,26 +40,6 @@ export class PpobCallbackController {
|
|||
}
|
||||
}
|
||||
|
||||
@Public()
|
||||
@Get('/elang')
|
||||
async getElang(@Req() request: FastifyRequest) {
|
||||
const response = request.query;
|
||||
|
||||
if (response['statuscode'] == 2) {
|
||||
//TODO: UPDATE GAGAL
|
||||
await this.transactionService.checkCallbackOrderFailed(
|
||||
response['clientid'],
|
||||
response,
|
||||
);
|
||||
} else {
|
||||
//TODO: UPDATE BERHASIL
|
||||
await this.transactionService.checkCallbackOrderSuccess(
|
||||
response['clientid'],
|
||||
response,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@Public()
|
||||
@Get('/metro')
|
||||
async getMetro(@Req() request: FastifyRequest) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user