From 53ccce34b13928abdce22204710877b7e5091187 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Mon, 4 Sep 2023 15:49:48 +0200 Subject: [PATCH] cob: Add missing `verdict` field to `review.edit` This is generally useful, and required when constructing a review without knowing the verdict ahead of time. --- 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 7c5de80d7..2773db7ce 100644 --- a/radicle-httpd/src/api/v1/projects.rs +++ b/radicle-httpd/src/api/v1/projects.rs @@ -687,8 +687,12 @@ async fn patch_update_handler( } => { patch.edit_revision(revision, description, &signer)?; } - patch::Action::ReviewEdit { review, summary } => { - patch.edit_review(review, summary, &signer)?; + patch::Action::ReviewEdit { + review, + summary, + verdict, + } => { + patch.edit_review(review, summary, verdict, &signer)?; } patch::Action::ReviewComment { review,