repository stats no longer fail on the backups screen

This commit is contained in:
Jarek Krochmalski committed 2026-09-13 14:50:02 +02:00
1 parent 0b048f99ab
commit b5e7d5188a
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();