aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-12-22 13:50:25 +0300
committerGitHub <noreply@github.com>2023-12-22 13:50:25 +0300
commit62bdc7d8f25ca99035cbedc8438d4e7e9b435655 (patch)
treece3ff02c399cd3dbf44eb3b0b98061fbb64482f9
parentfix: discussions logic cleanup, docs title changes (#142) (diff)
downloadlphub-62bdc7d8f25ca99035cbedc8438d4e7e9b435655.tar.gz
lphub-62bdc7d8f25ca99035cbedc8438d4e7e9b435655.tar.bz2
lphub-62bdc7d8f25ca99035cbedc8438d4e7e9b435655.zip
fix: sql typo discussions delete (#142)
-rw-r--r--backend/handlers/discussions.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/handlers/discussions.go b/backend/handlers/discussions.go
index 89297f2..39c9904 100644
--- a/backend/handlers/discussions.go
+++ b/backend/handlers/discussions.go
@@ -309,7 +309,7 @@ func DeleteMapDiscussion(c *gin.Context) {
309 c.JSON(http.StatusOK, models.ErrorResponse("User not logged in.")) 309 c.JSON(http.StatusOK, models.ErrorResponse("User not logged in."))
310 return 310 return
311 } 311 }
312 sql := `UPDATE map_discussions SET is_disabled = true WHERE id = $1 AND map_id = $2 AND user_id = $3` 312 sql := `UPDATE map_discussions SET is_deleted = true WHERE id = $1 AND map_id = $2 AND user_id = $3`
313 result, err := database.DB.Exec(sql, discussionID, mapID, user.(models.User).SteamID) 313 result, err := database.DB.Exec(sql, discussionID, mapID, user.(models.User).SteamID)
314 if err != nil { 314 if err != nil {
315 c.JSON(http.StatusOK, models.ErrorResponse(err.Error())) 315 c.JSON(http.StatusOK, models.ErrorResponse(err.Error()))