Skip to content

Commit 6c1c349

Browse files
committed
Update delete
1 parent 4f172d5 commit 6c1c349

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/managementClient.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,18 @@ export class SHLClient {
127127
const req = await fetch(`${API_BASE}/shl/${shl.id}/file`, {
128128
method: 'DELETE',
129129
headers: {
130-
authorization: `Bearer ${shl.managementToken}`
130+
authorization: `Bearer ${shl.managementToken}`,
131131
},
132132
body: contentEncrypted
133133
});
134134
const res = await req.json();
135135
return shl;
136136
}
137137
async deleteAllFiles(shl: SHLAdminParams) {
138-
const req = await fetch(`${API_BASE}/shl/${shl.id}/file`, {
138+
const req = await fetch(`${API_BASE}/shl/${shl.id}/file/all`, {
139139
method: 'DELETE',
140140
headers: {
141-
authorization: `Bearer ${shl.managementToken}`
141+
authorization: `Bearer ${shl.managementToken}`,
142142
}
143143
});
144144
const res = await req.json();

0 commit comments

Comments
 (0)