BUGFIX: giving to NPCs

This commit is contained in:
2018-11-03 13:08:16 +11:00
parent e5c50bf2bc
commit 7812ceb9d7

View File

@@ -175,7 +175,7 @@ async function handleTransfer({ data }, fn) {
//check the recipient is real //check the recipient is real
let query = "SELECT * FROM users WHERE userID = ? LIMIT 1;"; let query = "SELECT * FROM users WHERE userID = ? LIMIT 1;";
return dbConnection.query(query, [data[0]], (err, result) => { return dbConnection.query(query, [data[1]], (err, result) => {
if (err) throw err; if (err) throw err;
if (result.length == 0) { if (result.length == 0) {
@@ -430,4 +430,4 @@ function calculateTimeAgo(seconds) {
} }
return "recently"; return "recently";
} }