fix: updating the email field
Relates to #5, https://gitlab.skynet.ie/compsoc1/skynet/ldap/backend/-/issues/20
This commit is contained in:
parent
b228c4a061
commit
432dd0e4a0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue