summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
Diffstat (limited to 'src/db')
-rw-r--r--src/db/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/db/mod.rs b/src/db/mod.rs
index fa2b62f..bceab43 100644
--- a/src/db/mod.rs
+++ b/src/db/mod.rs
@@ -562,7 +562,9 @@ impl DbConn {
pub(crate) async fn delete_oauth_token(&self, id: &OauthTokenID) -> sqlx::Result<bool> {
Ok(query!(r#"delete from oauth_token where id = $1"#, id as _)
.execute(&mut self.get().await?.tx)
- .await?.rows_affected() > 0)
+ .await?
+ .rows_affected()
+ > 0)
}
pub(crate) async fn delete_refresh_token(&self, id: &OauthTokenID) -> sqlx::Result<()> {