repository stats no longer fail on the backups screen
This commit is contained in:
1 file changed
+2
-1
@@ -57,7 +57,8 @@
|
||||
loadingStats = true;
|
||||
try {
|
||||
const res = await fetch(`/api/backup/destinations/${destination.id}/task`, {
|
||||
method: 'POST', headers: { 'Content-Type': 'application/json' },
|
||||
// Accept: json runs the read synchronously so we get {success, stats}, not {jobId}.
|
||||
method: 'POST', headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
||||
body: JSON.stringify({ task: 'stats' })
|
||||
});
|
||||
const data = await res.json();
|
||||
|
||||
Reference in new issue
Block a user