fix: updating the email field

Relates to #5, https://gitlab.skynet.ie/compsoc1/skynet/ldap/backend/-/issues/20
This commit is contained in:
silver 2023-10-27 11:53:54 +01:00
parent b228c4a061
commit 432dd0e4a0

View file

@ -22,7 +22,7 @@ struct WolvesResultUser {
wolves_id: String,
first_name: String,
last_name: String,
email: String,
contact_email: String,
student_id: Option<String>,
note: Option<String>,
expiry: String,
@ -91,7 +91,7 @@ async fn add_users_wolves(db: &Pool<Sqlite>, server: &GuildId, user: &WolvesResu
",
)
.bind(&user.wolves_id)
.bind(&user.email)
.bind(&user.contact_email)
.fetch_optional(db)
.await
{