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

@@ -88,7 +88,7 @@ impl Notification {
&user_ids[..],
&bodies[..],
)
.execute(&mut *transaction)
.execute(&mut **transaction)
.await?;
Notification::clear_user_notifications_cache(
@@ -262,7 +262,7 @@ impl Notification {
",
&notification_ids_parsed
)
.fetch_many(&mut *transaction)
.fetch_many(&mut **transaction)
.try_filter_map(|e| async { Ok(e.right().map(|x| UserId(x.user_id))) })
.try_collect::<Vec<_>>()
.await?;
@@ -294,7 +294,7 @@ impl Notification {
",
&notification_ids_parsed
)
.execute(&mut *transaction)
.execute(&mut **transaction)
.await?;
let affected_users = sqlx::query!(
@@ -305,7 +305,7 @@ impl Notification {
",
&notification_ids_parsed
)
.fetch_many(&mut *transaction)
.fetch_many(&mut **transaction)
.try_filter_map(|e| async { Ok(e.right().map(|x| UserId(x.user_id))) })
.try_collect::<Vec<_>>()
.await?;