Skip to content

Commit

Permalink
fix: user signup works with gender
Browse files Browse the repository at this point in the history
  • Loading branch information
dhj03 committed Sep 4, 2023
1 parent ab37b6d commit c031541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions backend/server/src/database/models.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
use crate::images::{get_http_image_path, ImageLocation};

use super::schema::{
AdminLevel, ApplicationStatus, UserGender
};
use super::schema::{
answers, applications, campaigns, comments, organisation_users, organisations, questions,
ratings, roles, users,
};
use super::schema::{AdminLevel, ApplicationStatus, UserGender};
use chrono::NaiveDateTime;
use chrono::Utc;
use diesel::prelude::*;
Expand Down
1 change: 1 addition & 0 deletions backend/server/src/database/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ impl AdminLevel {
}

#[derive(Debug, DbEnum, PartialEq, Serialize, Deserialize, Clone, Copy)]
#[DbValueStyle = "PascalCase"]
pub enum UserGender {
Female,
Male,
Expand Down

0 comments on commit c031541

Please sign in to comment.