Skip to content

Commit

Permalink
Fixing delete api call
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed Jun 23, 2017
1 parent 9d9ef26 commit 03a22b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ MIT
Changelog
=========

[1.0.5](https://github.com/jdalrymple/node-gitlab-api/commit/fe5a5fbb8d01fb670b7c7b14ce2c5b7f30d71fe5) (2017-06-23)
------------------
- Fixing bug within the delete API calls. It was missing query parameters

[1.0.4](https://github.com/jdalrymple/node-gitlab-api/commit/fe5a5fbb8d01fb670b7c7b14ce2c5b7f30d71fe5) (2017-06-23)
------------------
- Adding more to the labels API
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-gitlab-api",
"version": "1.0.4",
"version": "1.0.5",
"description": "Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.",
"main": "src/index.js",
"directories": {},
Expand Down
3 changes: 2 additions & 1 deletion src/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ class API {
});
}

delete(endpoint) {
delete(endpoint, options) {
return Request.delete({
url: this.url + endpoint,
headers: this.headers,
qs: options,
json: true,
});
}
Expand Down

0 comments on commit 03a22b4

Please sign in to comment.