diff options
Diffstat (limited to 'backend/handlers/user.go')
| -rw-r--r-- | backend/handlers/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/handlers/user.go b/backend/handlers/user.go index 461e521..c985471 100644 --- a/backend/handlers/user.go +++ b/backend/handlers/user.go | |||
| @@ -808,7 +808,7 @@ func UpdateUser(c *gin.Context) { | |||
| 808 | _, err = database.DB.Exec(`UPDATE users SET username = $1, avatar_link = $2, country_code = $3, updated_at = $4 | 808 | _, err = database.DB.Exec(`UPDATE users SET username = $1, avatar_link = $2, country_code = $3, updated_at = $4 |
| 809 | WHERE steam_id = $5`, profile.PersonaName, profile.AvatarFull, profile.LocCountryCode, time.Now().UTC(), user.(models.User).SteamID) | 809 | WHERE steam_id = $5`, profile.PersonaName, profile.AvatarFull, profile.LocCountryCode, time.Now().UTC(), user.(models.User).SteamID) |
| 810 | if err != nil { | 810 | if err != nil { |
| 811 | CreateLog(user.(models.User).SteamID, LogTypeUser, LogDescriptionUserUpdateFail, "U#users: "+err.Error()) | 811 | CreateLog(user.(models.User).SteamID, LogTypeUser, LogDescriptionUserUpdateFail, "UPDATE#users: "+err.Error()) |
| 812 | c.JSON(http.StatusOK, models.ErrorResponse(err.Error())) | 812 | c.JSON(http.StatusOK, models.ErrorResponse(err.Error())) |
| 813 | return | 813 | return |
| 814 | } | 814 | } |