Unused arguments are replaced with _.
This commit is contained in:
parent
68df3287d7
commit
b14a221845
@ -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, results, fields) => {
|
||||
connection.query(query, post, (err, _, _) => {
|
||||
if (err) return reject(err);
|
||||
return resolve(true); });
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user