Skip to content

Commit 788ff21

Browse files
committed
fix delete
1 parent 3a1ed0a commit 788ff21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-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": "@carbonhost/typescript",
3-
"version": "0.0.88",
3+
"version": "0.0.89",
44
"main": "dist/index.js",
55
"module": "dist/index.mjs",
66
"types": "dist/index.d.ts",

src/file-manager/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export class FileManager {
4848
}
4949

5050
async deleteFile(params: { path?: string, paths?: string[] }) {
51-
return this.axios.delete("/files", { data: params })
51+
return this.axios.delete("/files", { params })
5252
}
5353

5454
async createFile(parentDirectory: string, fileName: string) {

0 commit comments

Comments
 (0)