diff --git a/src/models/account.rs b/src/models/account.rs index fc5fdd1..eb65445 100644 --- a/src/models/account.rs +++ b/src/models/account.rs @@ -21,7 +21,7 @@ pub struct Account { pub college: Option, pub major: Option, - pub rating: i8, + pub rating: i32, pub active: bool, pub created_at: chrono::NaiveDateTime, diff --git a/tests/organization.rs b/tests/organization.rs index 1bfd137..82a2a77 100644 --- a/tests/organization.rs +++ b/tests/organization.rs @@ -70,7 +70,7 @@ async fn test_organization() -> Result<()> { println!("Created organization: {}", data.id); let response = client - .post(format!("/org/delete/{}", id)) + .post(format!("/org/delete/{}", data.id)) .json(&Credentials { id: &id, token: &token, @@ -80,7 +80,7 @@ async fn test_organization() -> Result<()> { response.into_json::>().await.unwrap(); - assert!(!Path::new("content").join(id.clone()).exists()); + assert!(!Path::new("content").join(data.id.clone()).exists()); client .post(format!("/account/delete/{}", id))