tgz: integrity check

This commit is contained in:
Girish Ramakrishnan
2025-08-15 16:09:58 +05:30
parent b71e2957d3
commit 19682ec21b
13 changed files with 161 additions and 16 deletions
+11
View File
@@ -32,6 +32,17 @@ function create() {
if (error || result.status !== 200) return [error || result];
return [null];
},
async checkIntegrity(id) {
let error, result;
try {
result = await fetcher.post(`${API_ORIGIN}/api/v1/backups/${id}/check_integrity`, {}, { access_token: accessToken });
} catch (e) {
error = e;
}
if (error || result.status !== 200) return [error || result];
return [null];
},
async get(id) {
let error, result;
try {