Skip to content

Commit

Permalink
SWI-5388 Fix Query Parameters for Some Endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoegel committed Jun 4, 2024
1 parent 6e899bc commit 7a6a9ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Site.prototype.getInserviceNumbers = function(query, callback){
callback = query;
query = {};
}
this.client.makeRequest("get", this.client.concatAccountPath(SITE_PATH) + "/" + this.id + "/inserviceNumbers", function(err,res){
this.client.makeRequest("get", this.client.concatAccountPath(SITE_PATH) + "/" + this.id + "/inserviceNumbers", query, function(err,res){
if(err){
return callback(err);
}
Expand All @@ -173,7 +173,7 @@ Site.prototype.getPortIns = function(query, callback){
callback = query;
query = {};
}
this.client.makeRequest("get", this.client.concatAccountPath(SITE_PATH) + "/" + this.id + "/portins", function(err,res){
this.client.makeRequest("get", this.client.concatAccountPath(SITE_PATH) + "/" + this.id + "/portins", query, function(err,res){
if(err){
return callback(err);
}
Expand All @@ -187,7 +187,7 @@ Site.prototype.getTotalTns = function(query, callback){
callback = query;
query = {};
}
this.client.makeRequest("get", this.client.concatAccountPath(SITE_PATH) + "/" + this.id + "/totaltns", function(err,res){
this.client.makeRequest("get", this.client.concatAccountPath(SITE_PATH) + "/" + this.id + "/totaltns", query, function(err,res){
if(err){
return callback(err);
}
Expand Down
2 changes: 1 addition & 1 deletion test/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ describe("Site", function(){
var site = new Site();
site.id = "1";
site.client = helper.createClient();
site.getInserviceNumbers({}, function(err,res){
site.getInserviceNumbers({page: 1, size: 100}, function(err,res){
if(err){
return done(err);
}
Expand Down

0 comments on commit 7a6a9ce

Please sign in to comment.