Upgrade to sqlx 0.7.2 (#736)

* Update to sqlx 0.7.2

* Somehow missed one (and remove queries from other branch)
This commit is contained in:
Jackson Kruger
2023-10-23 14:30:39 -05:00
committed by GitHub
parent 9a8f3d7bad
commit 8803e11945
358 changed files with 8352 additions and 7467 deletions

View File

@@ -1517,7 +1517,7 @@ pub async fn bulk_edit_project_categories(
project_id as db_ids::ProjectId,
is_additional
)
.execute(&mut *transaction)
.execute(&mut **transaction)
.await?;
let mut mod_categories = Vec::new();
@@ -1553,7 +1553,7 @@ pub async fn edit_project_categories(
let mut mod_categories = Vec::new();
for category in categories {
let category_id = db_models::categories::Category::get_id(category, &mut *transaction)
let category_id = db_models::categories::Category::get_id(category, &mut **transaction)
.await?
.ok_or_else(|| {
ApiError::InvalidInput(format!("Category {} does not exist.", category.clone()))