diff options
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/controllers/modController.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/controllers/modController.go b/backend/controllers/modController.go index 72f1a53..07edff5 100644 --- a/backend/controllers/modController.go +++ b/backend/controllers/modController.go | |||
| @@ -151,7 +151,7 @@ func EditMapSummary(c *gin.Context) { | |||
| 151 | return | 151 | return |
| 152 | } | 152 | } |
| 153 | sql = `SELECT mh.id FROM map_history mh WHERE mh.score_count = $1 AND mh.category_id = $2 AND mh.map_id = $3` | 153 | sql = `SELECT mh.id FROM map_history mh WHERE mh.score_count = $1 AND mh.category_id = $2 AND mh.map_id = $3` |
| 154 | err = database.DB.QueryRow(sql, mapID, request.RouteID).Scan(&historyID) | 154 | err = database.DB.QueryRow(sql, scoreCount, categoryID, mapID).Scan(&historyID) |
| 155 | if err != nil { | 155 | if err != nil { |
| 156 | c.JSON(http.StatusBadRequest, models.ErrorResponse(err.Error())) | 156 | c.JSON(http.StatusBadRequest, models.ErrorResponse(err.Error())) |
| 157 | return | 157 | return |