From 4d542033e780541f00e73eacf26248d40df0d06e Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Wed, 11 Sep 2024 13:54:45 -0400 Subject: [PATCH] Fix beta 'events' method in Rust sdk This was changed to point at the wrong endpoint --- rust/src/api.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/src/api.rs b/rust/src/api.rs index 70426b55a..0b250f56b 100644 --- a/rust/src/api.rs +++ b/rust/src/api.rs @@ -979,9 +979,9 @@ impl<'a> Message<'a> { #[cfg(feature = "svix_beta")] pub async fn events( &self, - params: message_api::V1MessageCreateParams, - ) -> Result { - message_api::v1_message_create(self.cfg, params).await + params: message_api::V1MessageEventsParams, + ) -> Result { + message_api::v1_message_events(self.cfg, params).await } #[cfg(feature = "svix_beta")]