From b029e7d809d09b688ee85e6ba17de930a380f1b6 Mon Sep 17 00:00:00 2001 From: William Zhang Date: Thu, 21 Sep 2023 01:39:30 +1000 Subject: [PATCH] fix: removed organisation vector debug print --- backend/seed_data/src/seed.rs | 4 +--- backend/server/src/database/models.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/seed_data/src/seed.rs b/backend/seed_data/src/seed.rs index a7d4b395..f542faa2 100644 --- a/backend/seed_data/src/seed.rs +++ b/backend/seed_data/src/seed.rs @@ -133,9 +133,7 @@ pub fn seed() { .expect(&format!("Failed to insert org {}.", org.name)); } - let x = Organisation::get_all(&connection); - println!("{:?}", x); - assert!(x.len() == 2); + assert!(Organisation::get_all(&connection).len() == 2); println!("... Added {} organizations\n", orgs.len()); // make giuliana the admin of csesoc diff --git a/backend/server/src/database/models.rs b/backend/server/src/database/models.rs index 67faef39..d4236081 100644 --- a/backend/server/src/database/models.rs +++ b/backend/server/src/database/models.rs @@ -152,7 +152,7 @@ impl NewUser { } } -#[derive(Queryable, Serialize, Deserialize, Debug)] +#[derive(Queryable, Serialize, Deserialize)] pub struct Organisation { pub id: i32, pub name: String,