ups :>
This commit is contained in:
parent
fdafc44044
commit
c913e53ddb
@ -10,9 +10,10 @@ const data = {
|
||||
};
|
||||
|
||||
Object.keys(data).forEach(cur => {
|
||||
sql.exec(`select \`data\` from \`useless\` where \`trigger\` = '${cur}' limit 1`, (err, row) => {
|
||||
data[cur] = JSON.parse(row[0].data);
|
||||
});
|
||||
sql.exec("select `data` from `useless` where `trigger` = ? limit 1", [cur])
|
||||
.then(rows => {
|
||||
data[cur] = JSON.parse(rows[0].data);
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = bot => {
|
||||
|
Loading…
Reference in New Issue
Block a user