File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @squarecloud/api " : patch
3+ ---
4+
5+ Fix deleting application files.
Original file line number Diff line number Diff line change 1- import { join } from "path" ;
21import { readFile } from "fs/promises" ;
2+ import { join } from "path" ;
33
44import { assertPathLike , assertString } from "@/assertions/literal" ;
55import { Routes } from "@/lib/routes" ;
@@ -113,7 +113,7 @@ export class FilesModule {
113113
114114 const { status } = await this . application . client . api . request (
115115 Routes . apps . files . delete ( this . application . id ) ,
116- { method : "DELETE" , query : { path } } ,
116+ { method : "DELETE" , body : { path } } ,
117117 ) ;
118118
119119 return status === "success" ;
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export interface APIEndpoints {
9999 } ;
100100 "apps/files/delete" : {
101101 method : "DELETE" ;
102- query : RESTDeleteAPIFileDeleteQuery ;
102+ body : RESTDeleteAPIFileDeleteQuery ;
103103 response : undefined ;
104104 } ;
105105 "apps/deployments/list" : {
You can’t perform that action at this time.
0 commit comments