Skip to content

Commit c0ce739

Browse files
committed
fix: fixed update process steps
1 parent 80a149d commit c0ce739

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

phpmyfaq/assets/src/configuration/update.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const handleUpdateInformation = async (): Promise<void> => {
3838
Accept: 'application/json, text/plain, */*',
3939
'Content-Type': 'application/json',
4040
},
41-
body: JSON.stringify({ version: installedVersion.value }),
41+
body: installedVersion.value,
4242
});
4343

4444
if (!response.ok) {
@@ -88,7 +88,7 @@ export const handleConfigBackup = async (): Promise<void> => {
8888
Accept: 'application/json, text/plain, */*',
8989
'Content-Type': 'application/json',
9090
},
91-
body: JSON.stringify({ version: installedVersion.value }),
91+
body: installedVersion.value,
9292
});
9393

9494
if (!response.ok) {
@@ -121,7 +121,7 @@ export const handleDatabaseUpdate = async (): Promise<void> => {
121121
Accept: 'application/json, text/plain, */*',
122122
'Content-Type': 'application/json',
123123
},
124-
body: JSON.stringify({ version: installedVersion.value }),
124+
body: installedVersion.value,
125125
});
126126

127127
const result = await response.json();

0 commit comments

Comments
 (0)