Skip to content

Commit

Permalink
Remove unneeded signature parameter in jsonApiCall function
Browse files Browse the repository at this point in the history
  • Loading branch information
jaherne-duo authored and AaronAtDuo committed Jan 12, 2024
1 parent e9b2905 commit 8600ac3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions example/duo_admin_policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ client.jsonApiCall(

// Delete the created policy
deletePolicy(policy_key)
},
5
}
)

// Delete policy function
Expand All @@ -89,7 +88,6 @@ function deletePolicy (policy_key) {
}
res = res.response
console.log('Deleted policy: ' + policy_key)
},
5
}
)
}
4 changes: 2 additions & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 8600ac3

Please sign in to comment.