Skip to content

Commit aacfea5

Browse files
fix: use delete method for unarchive module
1 parent c27d4cf commit aacfea5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)