ups :>
This commit is contained in:
parent
fdafc44044
commit
c913e53ddb
|
@ -10,8 +10,9 @@ 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);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user