fixing: callback transaction

This commit is contained in:
ilham 2022-05-21 15:20:54 +07:00
parent fd47c34453
commit e386f5c618

View File

@ -51,7 +51,7 @@ export class PpobCallbackController {
async getMetro(@Req() request: FastifyRequest) { async getMetro(@Req() request: FastifyRequest) {
const response = request.query; const response = request.query;
if (response['message'].includes('CEK TAGIHAN')) { if (response['message'].toLowerCase().includes('cek')) {
if (response['status'] != 20) { if (response['status'] != 20) {
//TODO: UPDATE GAGAL //TODO: UPDATE GAGAL
await this.transactionService.updateBill( await this.transactionService.updateBill(