mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 03:27:13 +08:00
Using transaction instead of normal handle to do multiple queries
This commit is contained in:
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…
x
Reference in New Issue
Block a user