From 67eaa689e79a3bfa127dcc599cf902bc857afdb5 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 9 May 2023 23:58:05 +0400 Subject: [PATCH] Fixed a type in guestbook_admin.js. --- web/assets/js/guestbook_admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/assets/js/guestbook_admin.js b/web/assets/js/guestbook_admin.js index b1695a8..f79d930 100644 --- a/web/assets/js/guestbook_admin.js +++ b/web/assets/js/guestbook_admin.js @@ -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"); }