Skip to content

Commit 08368f4

Browse files
fix: use delete method for unarchive module (#20)
* fix: use delete method for unarchive module * bump version to 0.2.2
1 parent c27d4cf commit 08368f4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@makeplane/plane-node-sdk",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Node SDK for Plane",
55
"author": "Plane <[email protected]>",
66
"repository": {

src/api/Modules.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ export class Modules extends BaseResource {
125125
* Unarchive a module
126126
*/
127127
async unArchiveModule(workspaceSlug: string, projectId: string, moduleId: string): Promise<void> {
128-
return this.post<void>(`/workspaces/${workspaceSlug}/projects/${projectId}/modules/${moduleId}/unarchive/`);
128+
return this.httpDelete(
129+
`/workspaces/${workspaceSlug}/projects/${projectId}/archived-modules/${moduleId}/unarchive/`
130+
);
129131
}
130132
}

0 commit comments

Comments
 (0)