Skip to content

Commit

Permalink
Merge pull request #67 from mxmzb/double-quotes-fix
Browse files Browse the repository at this point in the history
Changed "" to '' in SQL query
  • Loading branch information
jeremydaly authored Jan 28, 2020
2 parents 16d9673 + 76a623f commit 00afe1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ module.exports = (params) => {
// Hunt for zombies (just the sleeping ones that this user owns)
let zombies = await query(
`SELECT ID,time FROM information_schema.processlist
WHERE command = "Sleep" AND time >= ? AND user = ?
WHERE command = 'Sleep' AND time >= ? AND user = ?
ORDER BY time DESC`,
[!isNaN(timeout) ? timeout : 60*15, _cfg.user])

Expand Down

0 comments on commit 00afe1d

Please sign in to comment.