aboutsummaryrefslogtreecommitdiff
path: root/backend/handlers/user.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-28 18:40:58 +0300
committerGitHub <noreply@github.com>2023-09-28 18:40:58 +0300
commitb37e49da3698a3c92b214931a23dcdb1ac41587c (patch)
tree569d8e3e7fdffe5dd67919ce82853aaed69f69e9 /backend/handlers/user.go
parentfix: check for category id for map history when deleting summary (#106) (diff)
downloadlphub-b37e49da3698a3c92b214931a23dcdb1ac41587c.tar.gz
lphub-b37e49da3698a3c92b214931a23dcdb1ac41587c.tar.bz2
lphub-b37e49da3698a3c92b214931a23dcdb1ac41587c.zip
feat: improve logs and mod log endpoint (#55)
Former-commit-id: 7f2d9100cc4bd78c27544909fe7215913d6a2dfe
Diffstat (limited to 'backend/handlers/user.go')
-rw-r--r--backend/handlers/user.go2
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 }