Oh, placeholders aren't supported in JS.

This commit is contained in:
Alexander Andreev 2022-06-25 03:36:21 +04:00
parent 357d7fbb42
commit b03cf13827
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

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