mirror of
https://github.com/Ratstail91/SANCTUM.git
synced 2025-11-29 10:34:26 +11:00
BUGFIX: giving to NPCs
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user