diff --git a/backend/seed_data/src/seed.rs b/backend/seed_data/src/seed.rs index f542faa2..a7d4b395 100644 --- a/backend/seed_data/src/seed.rs +++ b/backend/seed_data/src/seed.rs @@ -133,7 +133,9 @@ pub fn seed() { .expect(&format!("Failed to insert org {}.", org.name)); } - assert!(Organisation::get_all(&connection).len() == 2); + let x = Organisation::get_all(&connection); + println!("{:?}", x); + assert!(x.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 d4236081..67faef39 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)] +#[derive(Queryable, Serialize, Deserialize, Debug)] pub struct Organisation { pub id: i32, pub name: String,