Fix that
This commit is contained in:
parent
59e7bdee77
commit
0ce24300d7
2
index.js
2
index.js
|
|
@ -76,7 +76,7 @@ app.listen(port, () => {
|
|||
// Heartbeat checks
|
||||
setInterval(() => {
|
||||
const now = Date.now() / 1000;
|
||||
global.db.run('SELECT * FROM analytics WHERE heartbeatCheck <= ?', [now], (err, rows) => {
|
||||
global.db.run('SELECT * FROM analytics WHERE heartbeatCheck <= ? AND endTime IS NULL', [now], (err, rows) => {
|
||||
if (err) {
|
||||
return console.error('Failed to run heartbeat check', err);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue