From 142658eba76d6b8bcb512e2c0a891a3303c9aa63 Mon Sep 17 00:00:00 2001 From: Augustus Mayo Date: Mon, 23 Dec 2024 09:51:58 -0600 Subject: [PATCH] Fix discussion op call --- rfd-api/src/endpoints/rfd.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rfd-api/src/endpoints/rfd.rs b/rfd-api/src/endpoints/rfd.rs index 2c9485f..f2efbf5 100644 --- a/rfd-api/src/endpoints/rfd.rs +++ b/rfd-api/src/endpoints/rfd.rs @@ -179,7 +179,7 @@ pub async fn view_rfd_discussion( let ctx = rqctx.context(); let caller = ctx.v_ctx().get_caller(&rqctx).await?; let path = path.into_inner(); - view_rfd_comments_op(ctx, &caller, path.number, None).await + view_rfd_discussion_op(ctx, &caller, path.number, None).await } // Specific RFD revision endpoints @@ -273,7 +273,7 @@ pub async fn view_rfd_revision_discussion( let ctx = rqctx.context(); let caller = ctx.v_ctx().get_caller(&rqctx).await?; let path = path.into_inner(); - view_rfd_comments_op(ctx, &caller, path.number, Some(path.revision.into())).await + view_rfd_discussion_op(ctx, &caller, path.number, Some(path.revision.into())).await } #[derive(Debug, Deserialize, JsonSchema)]