Fix docker #3

Merged
phoenix merged 14 commits from fix_docker into main 2026-06-07 18:45:08 -04:00
2 changed files with 8 additions and 12 deletions
Showing only changes of commit ec80f1089f - Show all commits
+2 -2
View File
@@ -75,11 +75,11 @@ pub async fn register_user(
user.firstname = match payload.firstname { user.firstname = match payload.firstname {
Some(firstname) => firstname, Some(firstname) => firstname,
None => String::new() None => String::new(),
}; };
user.lastname = match payload.lastname { user.lastname = match payload.lastname {
Some(lastname) => lastname, Some(lastname) => lastname,
None => String::new() None => String::new(),
}; };
println!("Checking if user exists"); println!("Checking if user exists");
+6 -10
View File
@@ -85,19 +85,15 @@ pub mod user {
.await; .await;
match result { match result {
Ok(r) => { Ok(r) => match r {
match r { Some(row) => {
Some(row) => { if row.is_empty() {
if row.is_empty() {
Ok(false)
} else {
Ok(true)
}
}
None => {
Ok(false) Ok(false)
} else {
Ok(true)
} }
} }
None => Ok(false),
}, },
Err(e) => { Err(e) => {
eprintln!("What??"); eprintln!("What??");