Fix app import

This commit is contained in:
Girish Ramakrishnan
2025-08-02 19:09:21 +02:00
parent 4c74908789
commit ead6d9c7d3
7 changed files with 36 additions and 38 deletions
+2 -2
View File
@@ -445,10 +445,10 @@ function create() {
if (result.status !== 201) return [result];
return [null, result.body];
},
async import(id, remotePath, backupFormat, backupConfig) {
async import(id, data) {
let result;
try {
result = await fetcher.post(`${API_ORIGIN}/api/v1/apps/${id}/import`, { remotePath, backupFormat, backupConfig }, { access_token: accessToken });
result = await fetcher.post(`${API_ORIGIN}/api/v1/apps/${id}/import`, data, { access_token: accessToken });
} catch (e) {
return [e];
}