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); }); });