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