diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-07-08 18:55:18 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-08 18:55:18 +0300 |
| commit | f5790daa20dafca3019433d8632457ec955310d2 (patch) | |
| tree | 6df42b89335029a2326a4fadc205e3bf4f9c9679 /backend/handlers | |
| parent | fix: score count 0p summary fail (#164) (diff) | |
| download | lphub-f5790daa20dafca3019433d8632457ec955310d2.tar.gz lphub-f5790daa20dafca3019433d8632457ec955310d2.tar.bz2 lphub-f5790daa20dafca3019433d8632457ec955310d2.zip | |
fix: pq mismatched values (#166)
Diffstat (limited to 'backend/handlers')
| -rw-r--r-- | backend/handlers/mod.go | 2 |
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())) |