This commit is contained in:
Christopher Cookman 2026-01-25 15:17:28 -07:00
parent 59e7bdee77
commit 0ce24300d7

View file

@ -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);
}