From e386f5c618fb1f9a047e6359f8ca3bdc51cef56f Mon Sep 17 00:00:00 2001 From: ilham Date: Sat, 21 May 2022 15:20:54 +0700 Subject: [PATCH] fixing: callback transaction --- src/transaction/ppob_callback.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction/ppob_callback.controller.ts b/src/transaction/ppob_callback.controller.ts index cfd9894..c2e402c 100644 --- a/src/transaction/ppob_callback.controller.ts +++ b/src/transaction/ppob_callback.controller.ts @@ -51,7 +51,7 @@ export class PpobCallbackController { async getMetro(@Req() request: FastifyRequest) { const response = request.query; - if (response['message'].includes('CEK TAGIHAN')) { + if (response['message'].toLowerCase().includes('cek')) { if (response['status'] != 20) { //TODO: UPDATE GAGAL await this.transactionService.updateBill(