feat(backend): moved mobile screen size to browser version
This commit is contained in:
parent
44574016bc
commit
eb3952666e
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue