aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/handlers/discussions.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/handlers/discussions.go b/backend/handlers/discussions.go
index 39c9904..0fc0c11 100644
--- a/backend/handlers/discussions.go
+++ b/backend/handlers/discussions.go
@@ -222,6 +222,12 @@ func CreateMapDiscussionComment(c *gin.Context) {
222 c.JSON(http.StatusOK, models.ErrorResponse(err.Error())) 222 c.JSON(http.StatusOK, models.ErrorResponse(err.Error()))
223 return 223 return
224 } 224 }
225 sql = `UPDATE map_discussions SET updated_at = $2 WHERE id = $1`
226 _, err = database.DB.Exec(sql, discussionID, time.Now().UTC())
227 if err != nil {
228 c.JSON(http.StatusOK, models.ErrorResponse(err.Error()))
229 return
230 }
225 c.JSON(http.StatusOK, models.Response{ 231 c.JSON(http.StatusOK, models.Response{
226 Success: true, 232 Success: true,
227 Message: "Successfully created map discussion comment.", 233 Message: "Successfully created map discussion comment.",