Saving changes
All checks were successful
Rust Build / Check (pull_request) Successful in 46s
Rust Build / Test Suite (pull_request) Successful in 1m5s
Rust Build / Rustfmt (pull_request) Successful in 28s
Rust Build / Clippy (pull_request) Successful in 59s
Rust Build / build (pull_request) Successful in 1m26s
All checks were successful
Rust Build / Check (pull_request) Successful in 46s
Rust Build / Test Suite (pull_request) Successful in 1m5s
Rust Build / Rustfmt (pull_request) Successful in 28s
Rust Build / Clippy (pull_request) Successful in 59s
Rust Build / build (pull_request) Successful in 1m26s
This commit is contained in:
@@ -47,8 +47,8 @@ pub async fn register_user(
|
|||||||
lastname: payload.lastname.clone(),
|
lastname: payload.lastname.clone(),
|
||||||
status: String::from("Active"),
|
status: String::from("Active"),
|
||||||
email_verified: true,
|
email_verified: true,
|
||||||
date_created: time::OffsetDateTime::now_utc().to_string(),
|
date_created: Some(time::OffsetDateTime::now_utc()),
|
||||||
last_login: String::new(),
|
last_login: None,
|
||||||
salt_id: uuid::Uuid::nil(),
|
salt_id: uuid::Uuid::nil(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -235,10 +235,7 @@ mod tests {
|
|||||||
usr.username, returned_usr.username,
|
usr.username, returned_usr.username,
|
||||||
"Usernames do not match"
|
"Usernames do not match"
|
||||||
);
|
);
|
||||||
assert!(
|
assert!(returned_usr.date_created.is_some(), "Date Created is empty");
|
||||||
!returned_usr.date_created.is_empty(),
|
|
||||||
"Date Created is empty"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
assert!(false, "Error: {:?}", err.to_string());
|
assert!(false, "Error: {:?}", err.to_string());
|
||||||
|
Reference in New Issue
Block a user