1
0

Fixed a type in guestbook_admin.js.

This commit is contained in:
Alexander Andreev 2023-05-09 23:58:05 +04:00
parent 30a5b83e10
commit 67eaa689e7
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -58,7 +58,7 @@ for (const delete_reply_button of document.getElementsByName("delete-reply"))
function send_reply(e) {
let data = new URLSearchParams();
data.append("message", get_field(e.target, "message"));
fetch(`/api/guestbook/${get_field(e.target, "entry_id")}/reply`, {method: "PATCH", body: data})
fetch(`/api/guestbook/${get_field(e.target, "entry_id")}/reply`, {method: "POST", body: data})
.catch(e => console.log(e))
.then(() => window.location = "/guestbook/admin");
}