+1
-1
nginx/xcvr.conf
+1
-1
nginx/xcvr.conf
+6
-1
server/internal/handler/xcvrHandlers.go
+6
-1
server/internal/handler/xcvrHandlers.go
···
44
44
pu.Color = p.Color
45
45
pu.UpdateColor = true
46
46
}
47
-
h.db.UpdateProfile(pu, r.Context())
47
+
err = h.db.UpdateProfile(pu, r.Context())
48
+
if err != nil {
49
+
h.serverError(w, errors.New("error updating profile: " + err.Error()))
50
+
return
51
+
}
52
+
h.getProfileView(w,r)
48
53
}