Only send 25 heartbeats per request

This commit is contained in:
Alan Hamlett
2024-10-08 13:41:10 +02:00
parent 0d06d71584
commit 73c0892487

View File

@@ -175,7 +175,7 @@ class WakaTimeCore {
return;
}
const heartbeats = (await (await this.db()).getAll(config.queueName, undefined, 50)) as
const heartbeats = (await (await this.db()).getAll(config.queueName, undefined, 25)) as
| Heartbeat[]
| undefined;
if (!heartbeats || heartbeats.length === 0) return;