Skip to content

Commit

Permalink
Deps: SQLx 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi311 committed Sep 10, 2024
1 parent 8263719 commit aad34b4
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 44 deletions.
71 changes: 32 additions & 39 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/tanoshi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ clap = { version = "4", features = ["derive"] }
bytes = "1"
dirs = "5"
base64 = "0.22"
sqlx = { version = "0.7", features = [
sqlx = { version = "0.8", features = [
"runtime-tokio",
"tls-rustls",
"sqlite",
Expand Down
8 changes: 4 additions & 4 deletions crates/tanoshi/src/infrastructure/domain/repositories/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ impl UserRepository for UserRepositoryImpl {
column_to_update.push("telegram_chat_id = ?");
column_to_update.push("pushover_user_key = ?");
column_to_update.push("gotify_token = ?");
arguments.add(user.telegram_chat_id);
arguments.add(user.pushover_user_key.clone());
arguments.add(user.gotify_token.clone());
arguments.add(user.id);
arguments.add(user.telegram_chat_id).unwrap();
arguments.add(user.pushover_user_key.clone()).unwrap();
arguments.add(user.gotify_token.clone()).unwrap();
arguments.add(user.id).unwrap();

if column_to_update.is_empty() {
return Err(UserRepositoryError::Other(anyhow!("Nothing to update")));
Expand Down

0 comments on commit aad34b4

Please sign in to comment.