fix(backend): fixed bug in sessionStart handler

This commit is contained in:
Alexander Zavorotynskiy 2022-08-22 14:30:21 +02:00
parent 43f669e1f7
commit d955efe429

View file

@ -9,6 +9,7 @@ import (
"math/rand"
"net/http"
"openreplay/backend/internal/http/uuid"
"openreplay/backend/pkg/flakeid"
"strconv"
"time"
@ -134,7 +135,7 @@ func (e *Router) startSessionHandlerWeb(w http.ResponseWriter, r *http.Request)
UserUUID: userUUID,
SessionID: strconv.FormatUint(tokenData.ID, 10),
BeaconSizeLimit: e.cfg.BeaconSizeLimit,
StartTimestamp: e.services.Flaker.ExtractTimestamp(tokenData.ID),
StartTimestamp: int64(flakeid.ExtractTimestamp(tokenData.ID)),
})
}