fix: email changed to contact_email

Related to #20
This commit is contained in:
silver 2023-10-27 11:17:23 +01:00
parent 2b86fa58e4
commit ee88cbeb55

View file

@ -101,7 +101,7 @@ impl From<&WolvesResultUser> for AccountWolves {
AccountWolves { AccountWolves {
id_wolves: input.wolves_id, id_wolves: input.wolves_id,
id_student: input.student_id.to_owned(), id_student: input.student_id.to_owned(),
email: input.email.to_owned(), email: input.contact_email.to_owned(),
expiry: input.expiry.to_owned(), expiry: input.expiry.to_owned(),
name_first: Some(input.first_name.to_owned()), name_first: Some(input.first_name.to_owned()),
name_second: Some(input.last_name.to_owned()), name_second: Some(input.last_name.to_owned()),
@ -115,7 +115,7 @@ struct WolvesResultUser {
wolves_id: i64, wolves_id: i64,
first_name: String, first_name: String,
last_name: String, last_name: String,
email: String, contact_email: String,
student_id: Option<String>, student_id: Option<String>,
note: Option<String>, note: Option<String>,
expiry: String, expiry: String,