Using transaction instead of normal handle to do multiple queries
parent
81592af770
commit
733e01ec16
|
@ -623,8 +623,8 @@ func handleRetrieveEggs(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
jsonResponse(w, r, eggs)
|
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
|
jsonResponse(w, r, eggs)
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleUpdateEggs(w http.ResponseWriter, r *http.Request) {
|
func handleUpdateEggs(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
Loading…
Reference in New Issue