Skip to content

Commit

Permalink
fix: removed organisation debug trait and print
Browse files Browse the repository at this point in the history
  • Loading branch information
dhj03 committed Sep 20, 2023
1 parent fc191f8 commit 00051af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions backend/seed_data/src/seed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion backend/server/src/database/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl NewUser {
}
}

#[derive(Queryable, Serialize, Deserialize, Debug)]
#[derive(Queryable, Serialize, Deserialize)]
pub struct Organisation {
pub id: i32,
pub name: String,
Expand Down

0 comments on commit 00051af

Please sign in to comment.