🎨 Run updated prettier

This commit is contained in:
2023-08-25 14:42:38 +02:00
parent 57807e7ce0
commit 70238b4151
19 changed files with 77 additions and 71 deletions

View File

@ -20,7 +20,7 @@ async function fetchObjects(type) {
async function deleteObject(type, id) {
const response = await fetch(
baseUrl + `/admin/${type}?id=${encodeURIComponent(id)}`,
{ method: "delete" }
{ method: "delete" },
);
if (response.status != 200) alert("Delete failed!");
updateData();
@ -47,7 +47,7 @@ async function updateObject(type, id, data) {
"Content-Type": "application/json",
},
body: JSON.stringify(data),
}
},
);
if (response.status != 201) alert("Post failed!");
updateData();