mirror of
https://github.com/BreizhHardware/jellyseerr.git
synced 2026-01-18 16:47:33 +01:00
fix: add missing parameter to delete requests from ExternalAPI (#904)
fix #903
This commit is contained in:
@@ -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,
|
||||
@@ -313,7 +314,11 @@ class ExternalAPI {
|
||||
try {
|
||||
return await response.json();
|
||||
} catch {
|
||||
return await response.blob();
|
||||
try {
|
||||
return await response.blob();
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user