Skip to content

Commit

Permalink
fix (spaces): complete getFolders endpoint path (#20)
Browse files Browse the repository at this point in the history
Fixes #19

* 2.0.1
  • Loading branch information
ComfortablyCoding authored Jan 13, 2021
1 parent afe927b commit fb41db2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clickup.js",
"version": "2.0.0",
"version": "2.0.1",
"description": "A Node.js wrapper for the Clickup API",
"main": "./src/index.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Spaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Spaces {
*/
async getFolders(spaceId, archived = false) {
return this._client.get({
endpoint: `${this.route}/${spaceId}`,
endpoint: `${this.route}/${spaceId}/folder`,
params: {
archived,
},
Expand Down

0 comments on commit fb41db2

Please sign in to comment.