diff --git a/producer/handlers/order.go b/producer/handlers/order.go index 1fd8ca9..ac510de 100644 --- a/producer/handlers/order.go +++ b/producer/handlers/order.go @@ -94,7 +94,7 @@ func (h *OrderHandler) CreateOrder(w http.ResponseWriter, r *http.Request) { log.Printf("Kafka event published for order %s", order.ID) } - order.Status = "created" + order.Status = "created order" w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusCreated) json.NewEncoder(w).Encode(map[string]interface{}{