Compare commits
1 Commits
f52b3a2167
...
v0.6.2-mai
| Author | SHA1 | Date | |
|---|---|---|---|
| 6ec3b25e7d |
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user