Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging

This commit is contained in:
Fadli 2022-10-18 13:07:27 +07:00
commit d2cb64cc8d

View File

@ -131,4 +131,24 @@ export class PpobCallbackController {
}
}
}
@Public()
@Get('/hemat')
async getHemat(@Req() request: FastifyRequest) {
const response = request.query;
if (response['msg'] != 'Transaksi Sukses') {
//TODO: UPDATE GAGAL
await this.transactionService.checkCallbackOrderFailed(
response['clientid'],
response,
);
} else {
//TODO: UPDATE BERHASIL
await this.transactionService.checkCallbackOrderSuccess(
response['clientid'],
response,
);
}
}
}