diff options
Diffstat (limited to 'server/src/main.rs')
| -rw-r--r-- | server/src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/src/main.rs b/server/src/main.rs index 8c59b23..e4dff68 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -1208,7 +1208,6 @@ async fn get_translation_review_users( )] #[post("/translation/<projectid>/new", data = "<data>")] async fn translation_review_new( - db: &Db, mut conn: Connection<Db>, roots_state: &State<git_root::Roots>, session: auth::Session, @@ -1259,7 +1258,7 @@ async fn translation_review_new( } roots_state - .new_translation_review(db, projectid, translation_reviewid, base.as_str()) + .new_translation_review(&mut conn, projectid, translation_reviewid, base.as_str()) .map_err(|e| Custom(Status::InternalServerError, format!("{e}"))) .await?; |
