From e9e6391e15ca3c67deee725989786fdd167f9580 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 22 Jun 2017 22:55:25 +0200 Subject: [PATCH] Fixed location data --- middleware/UserInfo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/UserInfo.go b/middleware/UserInfo.go index d8232989..d7704903 100644 --- a/middleware/UserInfo.go +++ b/middleware/UserInfo.go @@ -91,7 +91,7 @@ func updateUserInfo(ctx *aero.Context) { user.Location.CountryName = newLocation.CountryName user.Location.CountryCode = newLocation.CountryCode user.Location.Latitude, _ = strconv.ParseFloat(newLocation.Latitude, 64) - user.Location.Longitude, _ = strconv.ParseFloat(newLocation.Latitude, 64) + user.Location.Longitude, _ = strconv.ParseFloat(newLocation.Longitude, 64) user.Location.CityName = newLocation.CityName user.Location.RegionName = newLocation.RegionName user.Location.TimeZone = newLocation.TimeZone