diff --git a/main.go b/main.go index 8b3782c..9e384c9 100644 --- a/main.go +++ b/main.go @@ -122,7 +122,9 @@ func _newHandlerPostAPIV1EventsSlack(cfg Config) http.HandlerFunc { return } - log.Printf("message: %+v", m) - http.Error(w, "not impl", http.StatusNotImplemented) + if err := cfg.storage.Upsert(ctx, m); err != nil { + http.Error(w, err.Error(), http.StatusInternalServerError) + return + } } }