Commit 01c2902ced57a13abcf3ba4e182b2be6c97386de

Authored by Adhidarma Hadiwinoto
1 parent 17dc6e81f7
Exists in master

Buy: replace +62 to 0

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

lib/command-handler/buy.js
... ... @@ -39,7 +39,7 @@ function execute(tokens, params, cb) {
39 39 report_port: params.report_port,
40 40 terminal_name: params.from,
41 41 product_name: tokens[1].toUpperCase(),
42   - destination: tokens[2],
  42 + destination: tokens[2].replace(/^\+62/, '0'),
43 43 password: tokens[3],
44 44 request_id: tokens[4] || generateRequestId(tokens[1], tokens[2]),
45 45 postpaid: 0