From 01c2902ced57a13abcf3ba4e182b2be6c97386de Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Tue, 3 Dec 2019 10:02:36 +0700 Subject: [PATCH] Buy: replace +62 to 0 --- lib/command-handler/buy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/command-handler/buy.js b/lib/command-handler/buy.js index 9de0577..b036de7 100644 --- a/lib/command-handler/buy.js +++ b/lib/command-handler/buy.js @@ -39,7 +39,7 @@ function execute(tokens, params, cb) { report_port: params.report_port, terminal_name: params.from, product_name: tokens[1].toUpperCase(), - destination: tokens[2], + destination: tokens[2].replace(/^\+62/, '0'), password: tokens[3], request_id: tokens[4] || generateRequestId(tokens[1], tokens[2]), postpaid: 0 -- 1.9.0