Skip to content

Commit e2c3459

Browse files
committed
Fix owner
1 parent 358dbe7 commit e2c3459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/pkg/handlers/heartbeat_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (h *HeartbeatHandler) Index(c *fiber.Ctx) error {
7777
return h.responseUnprocessableEntity(c, errors, "validation errors while fetching heartbeats")
7878
}
7979

80-
heartbeats, err := h.service.Index(ctx, request.Owner, request.ToIndexParams())
80+
heartbeats, err := h.service.Index(ctx, h.userIDFomContext(c), request.Owner, request.ToIndexParams())
8181
if err != nil {
8282
msg := fmt.Sprintf("cannot get messgaes with params [%+#v]", request)
8383
ctxLogger.Error(stacktrace.Propagate(err, msg))

0 commit comments

Comments
 (0)