From b03cf13827cd7c5b493947cb5fded6dd57f110b8 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 25 Jun 2022 03:36:21 +0400 Subject: [PATCH] Oh, placeholders aren't supported in JS. --- homepage/guestbook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homepage/guestbook.js b/homepage/guestbook.js index 766ad9a..04d73a1 100644 --- a/homepage/guestbook.js +++ b/homepage/guestbook.js @@ -72,7 +72,7 @@ exports.addPost = async (post) => { post.message = post.message.replace(/(?:\r\n|\n\r|\r)/g, "\n"); post.message = post.message.replace(/(?:\n\n|\n \n)/g, "\n"); - connection.query(query, post, (err, _, _) => { + connection.query(query, post, (err, results, fields) => { if (err) return reject(err); return resolve(true); }); });