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/trans.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/trans.rs')
| -rw-r--r-- | server/src/trans.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/trans.rs b/server/src/trans.rs index c4e3b45..3f47c8b 100644 --- a/server/src/trans.rs +++ b/server/src/trans.rs @@ -4,6 +4,7 @@ use anyhow; use futures::stream::TryStreamExt; use rocket_db_pools::{sqlx, Database, Pool}; use sorted_insert::SortedInsertByKey; +use sqlx::Acquire; use std::borrow::Cow; use std::collections::{HashMap, HashSet}; use std::fs::File; @@ -262,7 +263,7 @@ struct TranslationString { } pub async fn review_add_strings( - db: &Db, + db: &mut DbConnection, translation_reviewid: u64, strings: Vec<api_model::LocalizationString>, base: bool, |
