tsk-55: Register endpoint bug fix #72

Merged
phoenix merged 4 commits from tsk-55 into main 2025-10-20 16:05:30 +00:00
Showing only changes of commit 646b15938d - Show all commits

View File

@@ -124,10 +124,10 @@ pub mod user {
.map_err(|_e| sqlx::Error::RowNotFound)?,
};
if !result.id.is_nil() && !result.date_created.is_none() {
Ok((result.id, result.date_created))
} else {
if result.id.is_nil() && result.date_created.is_none() {
Err(sqlx::Error::RowNotFound)
} else {
Ok((result.id, result.date_created))
}
}
}