From 6cd68a6725a1a2a7d84bcb1daea150e4f4e7cfed Mon Sep 17 00:00:00 2001 From: Odweta Date: Thu, 19 Mar 2026 12:23:17 +0100 Subject: [PATCH] update 'update' (PUT) quote method --- backend/handlers.go | 2 +- backend/test_build.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100755 backend/test_build.sh diff --git a/backend/handlers.go b/backend/handlers.go index edd1b69..115311c 100644 --- a/backend/handlers.go +++ b/backend/handlers.go @@ -95,7 +95,7 @@ func updateQuote(w http.ResponseWriter, r *http.Request) { } // return updated object - q.ID = id + q.Id = id w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(q) diff --git a/backend/test_build.sh b/backend/test_build.sh new file mode 100755 index 0000000..28fa693 --- /dev/null +++ b/backend/test_build.sh @@ -0,0 +1,2 @@ +#!/usr/bin/bash +go build -o app && rm -fr app && echo "build test passed" || echo "build test FAILED!"