Fix accumulating total sessions

This commit is contained in:
Ingo Oppermann 2022-10-10 18:40:45 +02:00
parent 8314f71402
commit 6ef334331b
No known key found for this signature in database
GPG key ID: 2AB32426E9DD229E

View file

@ -86,7 +86,7 @@ func (w *WidgetHandler) Get(c echo.Context) error {
continue continue
} }
data.TotalSessions = s.TotalSessions data.TotalSessions += s.TotalSessions
} }
return c.JSON(http.StatusOK, data) return c.JSON(http.StatusOK, data)