Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NorbertBodziony committed Aug 28, 2024
1 parent 0665612 commit 716851f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions database/src/tables/users/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ impl Db {

let passkey = match passkey {
Some(passkey) => {
let serialized_passkey = serde_json::to_string(passkey).map_err(|e| {
DbError::DatabaseError(format!(
"Failed to serialize passkey: {}",
e.to_string()
))
})?;
let serialized_passkey =
serde_json::to_string(&vec![passkey.clone()]).map_err(|e| {
DbError::DatabaseError(format!(
"Failed to serialize passkey: {}",
e.to_string()
))
})?;

Some(serialized_passkey)
}
Expand Down

0 comments on commit 716851f

Please sign in to comment.