AppsView: updateInfo is now part of app object

This commit is contained in:
Girish Ramakrishnan
2025-06-26 16:37:51 +02:00
parent 19c9d7d59d
commit 2486aee24d
6 changed files with 26 additions and 33 deletions
+2 -2
View File
@@ -324,10 +324,10 @@ function create() {
if (result.status !== 200) return [result];
return [null, result.body.eventlogs];
},
async checkForUpdates(id) {
async checkUpdate(id) {
let result;
try {
result = await fetcher.post(`${API_ORIGIN}/api/v1/apps/${id}/check_for_updates`, {}, { access_token: accessToken });
result = await fetcher.post(`${API_ORIGIN}/api/v1/apps/${id}/check_update`, {}, { access_token: accessToken });
} catch (e) {
return [e];
}
+12
View File
@@ -50,6 +50,18 @@ function create() {
if (error || result.status !== 200) return [error || result];
return [null];
},
async checkAppUpdate(id) {
let error, result;
try {
result = await fetcher.post(`${API_ORIGIN}/api/v1/apps/${id}/check_update`, {}, { access_token: accessToken });
} catch (e) {
error = e;
}
if (error || result.status !== 200) return [error || result];
return [null];
},
};
}