Commit dd986a2a0c6ff1738af7681d8d6f8405365034e0

Authored by Adhidarma Hadiwinoto
1 parent 4b2ec8eed6
Exists in master

BUY: perbaikan custom request id

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

lib/command-handler/buy.js
... ... @@ -41,7 +41,7 @@ function execute(tokens, params, cb) {
41 41 product_name: tokens[1].toUpperCase(),
42 42 destination: tokens[2].replace(/^\+62/, '0'),
43 43 password: tokens[3],
44   - request_id: tokens[4] || generateRequestId(tokens[1], tokens[2]),
  44 + request_id: `${generateRequestId(tokens[1], tokens[2])}${Number(tokens[4]) ? '_req' + Number(tokens[4]) : ''}`,
45 45 postpaid: 0
46 46 };
47 47