diff --git a/SERVER_City/city.js b/SERVER_City/city.js index 13d2c85..e9da7d0 100644 --- a/SERVER_City/city.js +++ b/SERVER_City/city.js @@ -175,7 +175,7 @@ async function handleTransfer({ data }, fn) { //check the recipient is real 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 (result.length == 0) { @@ -430,4 +430,4 @@ function calculateTimeAgo(seconds) { } return "recently"; -} \ No newline at end of file +}