From 12bd13fea7ec05d0e51805c8e7be43c0b588ba60 Mon Sep 17 00:00:00 2001 From: Fadli Date: Fri, 18 Nov 2022 16:06:51 +0700 Subject: [PATCH] - fix generate id for transaction --- src/transaction/transaction.service.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/transaction/transaction.service.ts b/src/transaction/transaction.service.ts index c13654d..a1a3923 100644 --- a/src/transaction/transaction.service.ts +++ b/src/transaction/transaction.service.ts @@ -598,17 +598,10 @@ export class TransactionService { } //HIT API SUPPLIER - let hexString = uuid.v4(); - - // remove decoration - hexString = hexString.replace(/-/g, ''); - - let base64String = Buffer.from(hexString, 'hex').toString('base64'); - const trxId = Array(6) .fill(null) .map(() => { - return Math.round(Math.random() * 16).toString(16) + base64String; + return Math.round(Math.random() * 16).toString(16); }) .join('');