Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging
This commit is contained in:
commit
aed60a6f30
|
@ -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('');
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user