From b7d4e8f73f0ad6ba30fa0b8f2ccb2c09b0baf22b Mon Sep 17 00:00:00 2001 From: Aleksei Voronov Date: Sun, 18 Aug 2024 21:53:06 +0200 Subject: [PATCH] Use correct type for query params in `getFeedSkeleton` endpoint Using `Parameters` causes it not to deserialize the `limit` parameter correctly, leading to 400 errors if it is specified at all. `ParametersData` is the one we need. --- src/processes/feed_server/endpoints/get_feed_skeleton.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processes/feed_server/endpoints/get_feed_skeleton.rs b/src/processes/feed_server/endpoints/get_feed_skeleton.rs index e1f7c38..e465f6c 100644 --- a/src/processes/feed_server/endpoints/get_feed_skeleton.rs +++ b/src/processes/feed_server/endpoints/get_feed_skeleton.rs @@ -3,7 +3,7 @@ use std::sync::Arc; use anyhow::anyhow; use atrium_api::app::bsky::feed::defs::SkeletonFeedPostData; use atrium_api::app::bsky::feed::get_feed_skeleton::{ - OutputData as FeedSkeleton, Parameters as FeedSkeletonQuery, + OutputData as FeedSkeleton, ParametersData as FeedSkeletonQuery, }; use atrium_api::types::{LimitedNonZeroU8, Object}; use axum::extract::{Query, State};