aboutsummaryrefslogtreecommitdiff
path: root/backend/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'backend/handlers')
-rw-r--r--backend/handlers/mod.go2
1 files changed, 1 insertions, 1 deletions
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) {
94 } 94 }
95 // Update database with new data 95 // Update database with new data
96 sql = `INSERT INTO map_history (map_id,category_id,user_name,score_count,description,showcase,record_date) 96 sql = `INSERT INTO map_history (map_id,category_id,user_name,score_count,description,showcase,record_date)
97 VALUES ($1,$2,$3,$4,$5)` 97 VALUES ($1,$2,$3,$4,$5,$6,$7)`
98 _, err = tx.Exec(sql, mapID, request.CategoryID, request.UserName, *request.ScoreCount, request.Description, request.Showcase, request.RecordDate) 98 _, err = tx.Exec(sql, mapID, request.CategoryID, request.UserName, *request.ScoreCount, request.Description, request.Showcase, request.RecordDate)
99 if err != nil { 99 if err != nil {
100 CreateLog(user.(models.User).SteamID, LogTypeMod, LogDescriptionMapSummaryCreateFail, fmt.Sprintf("INSERT#map_history: %s", err.Error())) 100 CreateLog(user.(models.User).SteamID, LogTypeMod, LogDescriptionMapSummaryCreateFail, fmt.Sprintf("INSERT#map_history: %s", err.Error()))