Fix webterminal usage of AppsModel

This commit is contained in:
Johannes Zellner
2025-01-27 12:18:15 +01:00
parent f3e2f10478
commit 2b4c6514c3
2 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -64,7 +64,7 @@ function appProgressMessage(app) {
return app.message || (app.error ? app.error.message : '');
}
function create(origin, accessToken, id) {
function create(origin, accessToken) {
async function getTask(appId) {
let error, result;
try {
@@ -160,7 +160,7 @@ function create(origin, accessToken, id) {
if (error || result.status !== 200) return [error || result];
return [null, result.body];
},
async restart() {
async restart(id) {
let error, result;
try {
result = await fetcher.post(`${origin}/api/v1/apps/${id}/restart`, null, { access_token: accessToken });