From 5103d9cedda4eae3b72fbfe987fee0e66642fc29 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Thu, 29 Jun 2023 15:39:52 +0200 Subject: [PATCH] httpd: Implement `EditCodeComment` in route --- radicle-httpd/src/api/v1/projects.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/radicle-httpd/src/api/v1/projects.rs b/radicle-httpd/src/api/v1/projects.rs index b80dc7df2..2a4612b90 100644 --- a/radicle-httpd/src/api/v1/projects.rs +++ b/radicle-httpd/src/api/v1/projects.rs @@ -647,8 +647,12 @@ async fn patch_update_handler( patch::Action::EditReview { review, summary } => { patch.edit_review(review, summary, &signer)?; } - patch::Action::EditCodeComment { .. } => { - todo!() + patch::Action::EditCodeComment { + review, + comment, + body, + } => { + patch.edit_code_comment(review, comment, body, &signer)?; } patch::Action::Tag { add, remove } => { patch.tag(add, remove, &signer)?;