diff --git a/main.go b/main.go index 0904a44..cbaa0c9 100644 --- a/main.go +++ b/main.go @@ -72,7 +72,7 @@ func runHttpServer() { } }) http.HandleFunc("/current", func(w http.ResponseWriter, r *http.Request) { - res, err := json.Marshal(currentState) + res, err := json.Marshal(lastEvent) if err != nil { log.Fatal().Err(err).Msg("Cant Marshal Current State") }