1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: heartbeat entity character length (resolve #415)

This commit is contained in:
Ferdinand Mütsch
2022-09-30 15:28:11 +02:00
parent 147c79db60
commit a2ac049578
7 changed files with 164 additions and 60 deletions

View File

@ -3,6 +3,7 @@ package routes
import (
"encoding/base64"
"fmt"
datastructure "github.com/duke-git/lancet/v2/datastructure/set"
"github.com/emvi/logbuch"
"github.com/gorilla/mux"
"github.com/gorilla/schema"
@ -637,7 +638,7 @@ func (h *SettingsHandler) regenerateSummaries(user *models.User) error {
return err
}
if err := h.aggregationSrvc.Run(map[string]bool{user.ID: true}); err != nil {
if err := h.aggregationSrvc.Run(datastructure.NewSet(user.ID)); err != nil {
logbuch.Error("failed to regenerate summaries: %v", err)
return err
}