diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-06-22 22:57:08 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-06-22 22:57:08 +0200 |
| commit | f9b7c2a14c939d0bb7d1ac2fcca3116e38e37f74 (patch) | |
| tree | cc20775f2d70416ef6414d265b7e1d44cce6fece /server/src/main.rs | |
| parent | 9cb8a56b406c46244e936c2f40830d0e89dba785 (diff) | |
Add support for pushing changes to a translation review
Finally got around to fixing the pre-receive hook to include quarantined
objects so the hook actually can run git commands on the not-yet-accepted
commits. As part of that, had to make sure git hook and eyeballs server
had the same path to the repo or confusion will appear.
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?; |
