Unused arguments are replaced with _.

This commit is contained in:
Alexander Andreev 2022-06-25 03:32:46 +04:00
parent 68df3287d7
commit b14a221845
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, results, fields) => {
connection.query(query, post, (err, _, _) => {
if (err) return reject(err);
return resolve(true); });
});