From 4923ddcd3095f13d2e1b2bc1cfdbd34ec2b0bdf4 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Sun, 1 Dec 2019 17:02:18 +0700 Subject: [PATCH] Fix missing calling core --- lib/command-handler/adddownline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/command-handler/adddownline.js b/lib/command-handler/adddownline.js index 642e3ad..99259ce 100644 --- a/lib/command-handler/adddownline.js +++ b/lib/command-handler/adddownline.js @@ -63,13 +63,13 @@ function execute(tokens, params, cb) { coreParams.new_terminal_name += suffix; } } - - coreapi(coreEndpoint, coreParams, 'GET', cb); */ if (typeof coreParams.new_terminal_name === 'string' && common.isPhoneNumber(coreParams.new_terminal_name) && coreParams.new_terminal_name.indexOf('0') === 0) { coreParams.new_terminal_name = coreParams.new_terminal_name.replace(/^0/, '62'); } + + coreapi(coreEndpoint, coreParams, 'GET', cb); } module.exports = execute; \ No newline at end of file -- 1.9.0