Skip to content

Commit

Permalink
Merge branch 'main' into CHAOS-202-Add-pronouns-and-gender-to-user-in…
Browse files Browse the repository at this point in the history
…fo-when-registering-FrontEnd
  • Loading branch information
dhj03 committed Sep 20, 2023
2 parents b029e7d + ca22d34 commit fc191f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion backend/seed_data/src/seed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
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)]
#[derive(Queryable, Serialize, Deserialize, Debug)]
pub struct Organisation {
pub id: i32,
pub name: String,
Expand Down

0 comments on commit fc191f8

Please sign in to comment.