From 8600ac392566ab0b06a59bdefe2a10685f19f54f Mon Sep 17 00:00:00 2001 From: Jonathan Aherne Date: Thu, 11 Jan 2024 13:55:35 -0800 Subject: [PATCH] Remove unneeded signature parameter in jsonApiCall function --- example/duo_admin_policy.js | 6 ++---- lib/main.js | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/example/duo_admin_policy.js b/example/duo_admin_policy.js index 26b9273..051333e 100644 --- a/example/duo_admin_policy.js +++ b/example/duo_admin_policy.js @@ -72,8 +72,7 @@ client.jsonApiCall( // Delete the created policy deletePolicy(policy_key) - }, - 5 + } ) // Delete policy function @@ -89,7 +88,6 @@ function deletePolicy (policy_key) { } res = res.response console.log('Deleted policy: ' + policy_key) - }, - 5 + } ) } diff --git a/lib/main.js b/lib/main.js index 480e15e..3394b9f 100644 --- a/lib/main.js +++ b/lib/main.js @@ -86,10 +86,10 @@ function _request_with_backoff (options, body, callback, waitSecs = 1) { req.end() } -Client.prototype.jsonApiCall = function (method, path, params, callback, signature = 2) { +Client.prototype.jsonApiCall = function (method, path, params, callback) { this.apiCall(method, path, params, function (data) { callback(JSON.parse(data)) - }, signature) + }) } module.exports = {