aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-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()))