Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

increase limit for calculating treshold

Acho Arnold732db132082f
diff --git a/api/pkg/services/heartbeat_service.go b/api/pkg/services/heartbeat_service.go
index dca8999c..8ab42b15 100644
--- a/api/pkg/services/heartbeat_service.go
+++ b/api/pkg/services/heartbeat_service.go
@@ -18,7 +18,8 @@ import (
)
const (
- heartbeatCheckInterval = 16 * time.Minute
+ // select id, a.timestamp, a.owner, a.timestamp - (SELECT timestamp from heartbeats b where b.timestamp < a.timestamp and a.owner = b.owner and a.user_id = b.user_id order by b.timestamp desc limit 1) as diff from heartbeats a;
+ heartbeatCheckInterval = 25 * time.Minute
)
// HeartbeatService is handles heartbeat requests