Skip to content
Snippets Groups Projects
Commit 6bdc549b authored by Quique's avatar Quique
Browse files

fix copypasta

parent 3e6f43b0
No related branches found
No related tags found
No related merge requests found
...@@ -99,7 +99,7 @@ func (a *api) UpdateProduct(w http.ResponseWriter, req *http.Request) { ...@@ -99,7 +99,7 @@ func (a *api) UpdateProduct(w http.ResponseWriter, req *http.Request) {
var product Product var product Product
err := json.NewDecoder(req.Body).Decode(&product) err := json.NewDecoder(req.Body).Decode(&product)
if err != nil { if err != nil {
log.Printf("Can't decode memeber: %v", err) log.Printf("Can't decode product: %v", err)
w.WriteHeader(http.StatusInternalServerError) w.WriteHeader(http.StatusInternalServerError)
return return
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment