Skip to content

Commit

Permalink
fix: add missing parameter to delete requests from ExternalAPI (#904)
Browse files Browse the repository at this point in the history
fix #903
  • Loading branch information
gauthier-th authored Jul 29, 2024
1 parent d5f817e commit 36d98a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/api/externalapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ class ExternalAPI {
): Promise<T> {
const url = this.formatUrl(endpoint, params);
const response = await this.fetch(url, {
method: 'DELETE',
...config,
headers: {
...this.defaultHeaders,
Expand Down Expand Up @@ -313,7 +314,11 @@ class ExternalAPI {
try {
return await response.json();
} catch {
return await response.blob();
try {
return await response.blob();
} catch {
return null;
}
}
}
}
Expand Down

0 comments on commit 36d98a2

Please sign in to comment.