From f5790daa20dafca3019433d8632457ec955310d2 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 8 Jul 2024 18:55:18 +0300 Subject: fix: pq mismatched values (#166) --- backend/handlers/mod.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend') diff --git a/backend/handlers/mod.go b/backend/handlers/mod.go index 1348547..dc3d08d 100644 --- a/backend/handlers/mod.go +++ b/backend/handlers/mod.go @@ -94,7 +94,7 @@ func CreateMapSummary(c *gin.Context) { } // Update database with new data sql = `INSERT INTO map_history (map_id,category_id,user_name,score_count,description,showcase,record_date) - VALUES ($1,$2,$3,$4,$5)` + VALUES ($1,$2,$3,$4,$5,$6,$7)` _, err = tx.Exec(sql, mapID, request.CategoryID, request.UserName, *request.ScoreCount, request.Description, request.Showcase, request.RecordDate) if err != nil { CreateLog(user.(models.User).SteamID, LogTypeMod, LogDescriptionMapSummaryCreateFail, fmt.Sprintf("INSERT#map_history: %s", err.Error())) -- cgit v1.2.3