Skip to content

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

Fix owner

Acho Arnolde2c34597b461
diff --git a/api/pkg/handlers/heartbeat_handler.go b/api/pkg/handlers/heartbeat_handler.go
index 9dbafec3..727fddbd 100644
--- a/api/pkg/handlers/heartbeat_handler.go
+++ b/api/pkg/handlers/heartbeat_handler.go
@@ -77,7 +77,7 @@ func (h *HeartbeatHandler) Index(c *fiber.Ctx) error {
return h.responseUnprocessableEntity(c, errors, "validation errors while fetching heartbeats")
}
- heartbeats, err := h.service.Index(ctx, request.Owner, request.ToIndexParams())
+ heartbeats, err := h.service.Index(ctx, h.userIDFomContext(c), request.Owner, request.ToIndexParams())
if err != nil {
msg := fmt.Sprintf("cannot get messgaes with params [%+#v]", request)
ctxLogger.Error(stacktrace.Propagate(err, msg))