From ae0a031d0a5da0aeb348f53a30764fada27fdf7d Mon Sep 17 00:00:00 2001 From: Muhammad Fadli Date: Mon, 15 May 2023 16:33:23 +0700 Subject: [PATCH] - fix metro supplier when getting success from link aja serial number is missing --- src/transaction/transaction.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction/transaction.service.ts b/src/transaction/transaction.service.ts index 6e43b47..4984c19 100644 --- a/src/transaction/transaction.service.ts +++ b/src/transaction/transaction.service.ts @@ -1578,7 +1578,7 @@ export class TransactionService { const response = callback['message']; const responseBaru = response.split(' '); - if (supplier.code == 'metro' && response.includes('PLN')) { + if (supplier.code == 'metro' && response.includes('PLN') || response.includes('LINK AJA')) { const s = 'SN: ' const index = response.indexOf(s); const subIndex = index + s.length;