Oh, placeholders aren't supported in JS.
This commit is contained in:
parent
357d7fbb42
commit
b03cf13827
@ -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); });
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user