From 9f8f895aebdb310508125cac153198d6f5b732c7 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 24 Apr 2023 18:38:48 +0300 Subject: feat: change username to user_name --- backend/controllers/loginController.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/controllers/loginController.go') diff --git a/backend/controllers/loginController.go b/backend/controllers/loginController.go index 6c0453b..4de4c00 100644 --- a/backend/controllers/loginController.go +++ b/backend/controllers/loginController.go @@ -56,7 +56,7 @@ func Login(c *gin.Context) { user.LocCountryCode = "XX" } // Insert new user to database - database.DB.Exec(`INSERT INTO users (steam_id, username, avatar_link, country_code) + database.DB.Exec(`INSERT INTO users (steam_id, user_name, avatar_link, country_code) VALUES ($1, $2, $3, $4)`, steamID, user.PersonaName, user.AvatarFull, user.LocCountryCode) } // Generate JWT token -- cgit v1.2.3