aboutsummaryrefslogtreecommitdiff
path: root/api/internal/controllers/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/internal/controllers/user.go')
-rw-r--r--api/internal/controllers/user.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/api/internal/controllers/user.go b/api/internal/controllers/user.go
index fa9617a..a0efdc8 100644
--- a/api/internal/controllers/user.go
+++ b/api/internal/controllers/user.go
@@ -3,7 +3,6 @@ package controllers
3import ( 3import (
4 "database/sql" 4 "database/sql"
5 "errors" 5 "errors"
6 "log"
7 "net/http" 6 "net/http"
8 "water/api/internal/database" 7 "water/api/internal/database"
9 "water/api/internal/models" 8 "water/api/internal/models"
@@ -64,8 +63,6 @@ func UpdateUserPreferences(c *gin.Context) {
64 return 63 return
65 } 64 }
66 65
67 log.Printf("newPreferences: %v", newPreferences)
68
69 _, err = db.Exec("UPDATE Preferences SET color = ?, size_id = ? WHERE id = ?", newPreferences.Color, newPreferences.SizeID, newPreferences.ID) 66 _, err = db.Exec("UPDATE Preferences SET color = ?, size_id = ? WHERE id = ?", newPreferences.Color, newPreferences.SizeID, newPreferences.ID)
70 if err != nil { 67 if err != nil {
71 c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) 68 c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})