feat(backend): moved mobile screen size to browser version

This commit is contained in:
Alexander 2024-04-02 17:35:37 +02:00
parent 44574016bc
commit eb3952666e

View file

@ -109,7 +109,7 @@ func (e *Router) startSessionHandlerIOS(w http.ResponseWriter, r *http.Request)
if req.Platform != "" && req.Platform != "ios" {
platform = req.Platform
os = "Android"
screen = fmt.Sprintf("%d:%d", req.Width, req.Height)
screen = fmt.Sprintf("%d.%d", req.Width, req.Height)
}
if !req.DoNotRecord {
@ -131,7 +131,7 @@ func (e *Router) startSessionHandlerIOS(w http.ResponseWriter, r *http.Request)
UserCity: geoInfo.City,
UserDeviceMemorySize: req.DeviceMemory,
UserDeviceHeapSize: req.DeviceMemory,
UserBrowser: screen,
UserBrowserVersion: screen,
}); err != nil {
e.log.Warn(r.Context(), "failed to add mobile session to DB: %s", err)
}