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

This commit is contained in:
Fadli 2022-11-18 16:07:16 +07:00
commit aed60a6f30

View File

@ -598,17 +598,10 @@ export class TransactionService {
} }
//HIT API SUPPLIER //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) const trxId = Array(6)
.fill(null) .fill(null)
.map(() => { .map(() => {
return Math.round(Math.random() * 16).toString(16) + base64String; return Math.round(Math.random() * 16).toString(16);
}) })
.join(''); .join('');