diff --git a/index.js b/index.js index 64d731c..4e4fc16 100644 --- a/index.js +++ b/index.js @@ -50,8 +50,7 @@ TestRail.prototype._callAPI = function (method, url, queryVariables, body, callb headers: { 'content-type': 'application/json', 'accept': 'application/json' - }, - rejectUnauthorized: false + } }; if(body != null) { @@ -290,8 +289,8 @@ TestRail.prototype.getReports = function (project_id, callback) { return this.apiGet('get_reports/' + project_id, callback); }; -TestRail.prototype.runReport = function (report_template_id, callback) { - return this.apiGet('run_report/' + report_template_id, callback); +TestRail.prototype.runReport = function (report_id, callback) { + return this.apiGet('run_report/' + report_id, callback); }; // ----- Results -----