Merge branch 'master' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-production
This commit is contained in:
		| @@ -341,13 +341,10 @@ export class TransactionService { | |||||||
|     //   ); |     //   ); | ||||||
|     // } else { |     // } else { | ||||||
|  |  | ||||||
|     const d = new Date(); |  | ||||||
|     let ms = d.getMilliseconds(); |  | ||||||
|  |  | ||||||
|     const trxId = Array(6) |     const trxId = Array(6) | ||||||
|         .fill(null) |         .fill(null) | ||||||
|         .map(() => { |         .map(() => { | ||||||
|           return Math.round(Math.random() * 16).toString(16) + ms.toString(); |           return Math.round(Math.random() * 16).toString(16); | ||||||
|         }) |         }) | ||||||
|         .join(''); |         .join(''); | ||||||
|  |  | ||||||
| @@ -601,13 +598,17 @@ export class TransactionService { | |||||||
|       } |       } | ||||||
|  |  | ||||||
|       //HIT API SUPPLIER |       //HIT API SUPPLIER | ||||||
|       const d = new Date(); |       let hexString = uuid.v4(); | ||||||
|       let ms = d.getMilliseconds(); |  | ||||||
|  |       // 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) + ms.toString(); |             return Math.round(Math.random() * 16).toString(16) + base64String; | ||||||
|           }) |           }) | ||||||
|           .join(''); |           .join(''); | ||||||
|  |  | ||||||
| @@ -851,12 +852,10 @@ export class TransactionService { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     //HIT API SUPPLIER |     //HIT API SUPPLIER | ||||||
|     const d = new Date(); |  | ||||||
|     let ms = d.getMilliseconds(); |  | ||||||
|     const trxId = Array(6) |     const trxId = Array(6) | ||||||
|         .fill(null) |         .fill(null) | ||||||
|         .map(() => { |         .map(() => { | ||||||
|           return Math.round(Math.random() * 16).toString(16) + ms.toString(); |           return Math.round(Math.random() * 16).toString(16); | ||||||
|         }) |         }) | ||||||
|         .join(''); |         .join(''); | ||||||
|  |  | ||||||
| @@ -1005,13 +1004,10 @@ export class TransactionService { | |||||||
|         userData.partner?.id, |         userData.partner?.id, | ||||||
|     ); |     ); | ||||||
|     //HIT API SUPPLIER |     //HIT API SUPPLIER | ||||||
|     const d = new Date(); |  | ||||||
|     let ms = d.getMilliseconds(); |  | ||||||
|  |  | ||||||
|     const trxId = Array(6) |     const trxId = Array(6) | ||||||
|         .fill(null) |         .fill(null) | ||||||
|         .map(() => { |         .map(() => { | ||||||
|           return Math.round(Math.random() * 16).toString(16) + ms.toString(); |           return Math.round(Math.random() * 16).toString(16); | ||||||
|         }) |         }) | ||||||
|         .join(''); |         .join(''); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user