From cf652b9210ea0fabf7a782936282007c674c23fe Mon Sep 17 00:00:00 2001 From: K0nnyaku Date: Tue, 10 Dec 2024 22:17:44 +0800 Subject: [PATCH 1/2] fix: test-org (#62) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 苏向夜 <46275354+fu050409@users.noreply.github.com> --- tests/organization.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) From 4c564899e35b40c0321982fa8bdabe0b6a5b7706 Mon Sep 17 00:00:00 2001 From: K0nnyaku Date: Sun, 15 Dec 2024 22:54:19 +0800 Subject: [PATCH 2/2] refactor: modify the variable type of rating (#63) chore: modify the variable type of rating --- src/models/account.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,