Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
narayana-plivo committed Sep 1, 2023
1 parent 48c5277 commit 188c5ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/resources/powerpacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 188c5ba

Please sign in to comment.