From 733e01ec16cc7fa9a71fe915df9a592f750d87be Mon Sep 17 00:00:00 2001 From: gamray Date: Mon, 13 May 2024 00:35:17 +0200 Subject: [PATCH] Using transaction instead of normal handle to do multiple queries --- api/endpoints.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/endpoints.go b/api/endpoints.go index 016ebcd..70f7ab8 100644 --- a/api/endpoints.go +++ b/api/endpoints.go @@ -623,8 +623,8 @@ func handleRetrieveEggs(w http.ResponseWriter, r *http.Request) { return } - jsonResponse(w, r, eggs) w.WriteHeader(http.StatusOK) + jsonResponse(w, r, eggs) } func handleUpdateEggs(w http.ResponseWriter, r *http.Request) {