diff --git a/lib/site.js b/lib/site.js index 1edc0dc..7aeb26d 100644 --- a/lib/site.js +++ b/lib/site.js @@ -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); } @@ -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); } @@ -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); } diff --git a/test/site.js b/test/site.js index bfa029d..967e7cc 100644 --- a/test/site.js +++ b/test/site.js @@ -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); }