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

@@ -50,7 +50,7 @@ impl Report {
self.body,
self.reporter as UserId
)
.execute(&mut *transaction)
.execute(&mut **transaction)
.await?;
Ok(())
@@ -117,7 +117,7 @@ impl Report {
",
id as ReportId
)
.fetch_one(&mut *transaction)
.fetch_one(&mut **transaction)
.await?;
if !result.exists.unwrap_or(false) {
@@ -131,7 +131,7 @@ impl Report {
",
id as ReportId
)
.fetch_optional(&mut *transaction)
.fetch_optional(&mut **transaction)
.await?;
if let Some(thread_id) = thread_id {
@@ -145,7 +145,7 @@ impl Report {
",
id as ReportId,
)
.execute(&mut *transaction)
.execute(&mut **transaction)
.await?;
Ok(Some(()))