From 6ef334331b55362fd16578fb51e7e03950ab1ed7 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Mon, 10 Oct 2022 18:40:45 +0200 Subject: [PATCH] Fix accumulating total sessions --- http/handler/api/widget.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/handler/api/widget.go b/http/handler/api/widget.go index 5672ba5d..41916444 100644 --- a/http/handler/api/widget.go +++ b/http/handler/api/widget.go @@ -86,7 +86,7 @@ func (w *WidgetHandler) Get(c echo.Context) error { continue } - data.TotalSessions = s.TotalSessions + data.TotalSessions += s.TotalSessions } return c.JSON(http.StatusOK, data)