tsk-55: Register endpoint bug fix #72
@@ -124,10 +124,10 @@ pub mod user {
|
|||||||
.map_err(|_e| sqlx::Error::RowNotFound)?,
|
.map_err(|_e| sqlx::Error::RowNotFound)?,
|
||||||
};
|
};
|
||||||
|
|
||||||
if !result.id.is_nil() && !result.date_created.is_none() {
|
if result.id.is_nil() && result.date_created.is_none() {
|
||||||
Ok((result.id, result.date_created))
|
|
||||||
} else {
|
|
||||||
Err(sqlx::Error::RowNotFound)
|
Err(sqlx::Error::RowNotFound)
|
||||||
|
} else {
|
||||||
|
Ok((result.id, result.date_created))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user