🎨 Run updated prettier
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user