From b853dea38baaf2eac669c00b18d7df44274609ed Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Tue, 29 Oct 2024 12:08:33 +0100 Subject: [PATCH] Fix `patches_handler` params --- crates/test-http-api/src/api.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/test-http-api/src/api.rs b/crates/test-http-api/src/api.rs index 20a9cd8bb..3af4d6782 100644 --- a/crates/test-http-api/src/api.rs +++ b/crates/test-http-api/src/api.rs @@ -279,8 +279,8 @@ async fn issue_handler( #[serde(rename_all = "camelCase")] struct PatchesBody { pub rid: identity::RepoId, - pub page: Option, - pub per_page: Option, + pub skip: Option, + pub take: Option, pub status: Option, } @@ -288,12 +288,12 @@ async fn patches_handler( State(ctx): State, Json(PatchesBody { rid, - page, - per_page, + skip, + take, status, }): Json, ) -> impl IntoResponse { - let patches = ctx.list_patches(rid, status, page, per_page)?; + let patches = ctx.list_patches(rid, status, skip, take)?; Ok::<_, Error>(Json(patches)) }