diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-07-03 19:47:38 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-07-03 19:47:38 +0300 |
| commit | 31fdc794d645967542e38d7670a5f19ac745717e (patch) | |
| tree | 3b9ff8935ee228e84128c05aa73a07b5cc6717d4 /backend/controllers/recordController.go | |
| parent | docs: update swagger (diff) | |
| download | lphub-31fdc794d645967542e38d7670a5f19ac745717e.tar.gz lphub-31fdc794d645967542e38d7670a5f19ac745717e.tar.bz2 lphub-31fdc794d645967542e38d7670a5f19ac745717e.zip | |
fix: sql typo record controller
Former-commit-id: 8d78b48a9c745d94f4e287b0d2b7871ecdb4873b
Diffstat (limited to 'backend/controllers/recordController.go')
| -rw-r--r-- | backend/controllers/recordController.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/controllers/recordController.go b/backend/controllers/recordController.go index 9cc6da6..101f0e4 100644 --- a/backend/controllers/recordController.go +++ b/backend/controllers/recordController.go | |||
| @@ -46,7 +46,7 @@ func CreateRecordWithDemo(c *gin.Context) { | |||
| 46 | var gameName string | 46 | var gameName string |
| 47 | var isCoop bool | 47 | var isCoop bool |
| 48 | var isDisabled bool | 48 | var isDisabled bool |
| 49 | sql := `SELECT g.name, m.is_disabled FROM maps m INNER JOIN games g ON m.game_id=g.id WHERE id = $1` | 49 | sql := `SELECT g.name, m.is_disabled FROM maps m INNER JOIN games g ON m.game_id=g.id WHERE m.id = $1` |
| 50 | err := database.DB.QueryRow(sql, mapId).Scan(&gameName, &isDisabled) | 50 | err := database.DB.QueryRow(sql, mapId).Scan(&gameName, &isDisabled) |
| 51 | if err != nil { | 51 | if err != nil { |
| 52 | c.JSON(http.StatusBadRequest, models.ErrorResponse(err.Error())) | 52 | c.JSON(http.StatusBadRequest, models.ErrorResponse(err.Error())) |