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!"