Skip to content

Commit

Permalink
wrong key on requests that send api key as a query string param
Browse files Browse the repository at this point in the history
  • Loading branch information
officert committed Jun 14, 2017
1 parent e96aac9 commit 26f622b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/client/labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function getLabelsApi(siftScienceClient) {
if (!userId) return Promise.reject(new Error('userId is required'));

_.extend(params, {
$api_key: key
api_key: key
});

return Promise.resolve(v204HttpClient.delete(`/users/${userId}/labels`, params))
Expand Down
2 changes: 1 addition & 1 deletion lib/client/score.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function getScoreApi(siftScienceClient) {
if (!userId) return Promise.reject(new Error('userId is required'));

_.extend(params, {
$api_key: key
api_key: key
});

return Promise.resolve(v204HttpClient.get(`/users/${userId}/score`, params))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-siftscience",
"version": "0.0.11",
"version": "0.0.12",
"description": "Node HTTP client for Sift Science's API",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 26f622b

Please sign in to comment.