From 59a5aa7c55d5e78dc4f20dff6daf031adb8cd615 Mon Sep 17 00:00:00 2001 From: Shubham Prasad Date: Mon, 13 Apr 2020 14:07:04 +0530 Subject: [PATCH] change check --- lib/rest/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rest/request.js b/lib/rest/request.js index f9b861b..2bb23fc 100644 --- a/lib/rest/request.js +++ b/lib/rest/request.js @@ -33,7 +33,7 @@ export function Request(config) { json: true }; - if (typeof (params) != 'undefined') { + if (params) { if (params.hasOwnProperty('is_call_insights_request')) { options.url = params.call_insights_base_url + params.call_insights_request_path; delete params.is_call_insights_request;