From 188c5ba72059a469e6f3505acdcb93bbfa4df67f Mon Sep 17 00:00:00 2001 From: narayana Date: Fri, 1 Sep 2023 10:48:55 +0530 Subject: [PATCH] fix --- lib/resources/powerpacks.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/resources/powerpacks.js b/lib/resources/powerpacks.js index d7f74832..1ae4130b 100644 --- a/lib/resources/powerpacks.js +++ b/lib/resources/powerpacks.js @@ -328,7 +328,7 @@ export class Powerpack extends PlivoResource { } remove_tollfree(tollfree, unrent = false) { var params = {}; - params['unrent'] = unrent.toString(); + params['unrent'] = unrent; let path = 'NumberPool/' + this.number_pool_id + '/Tollfree/' + tollfree + '/'; let client = this[clientKey]; return new Promise((resolve, reject) => { @@ -483,9 +483,7 @@ export class Powerpack extends PlivoResource { */ delete(unrent_numbers = false) { let params = {}; - if (typeof unrent_numbers === 'boolean') { - params.unrent_numbers = unrent_numbers.toString(); - } + params.unrent_numbers = unrent_numbers; let path = 'Powerpack/' + this.uuid + '/'; return super.customexecuteAction(path.toString().trim(), 'DELETE', params); }