From 432dd0e4a0a1697ae9911a90f249b36727828ce5 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Fri, 27 Oct 2023 11:53:54 +0100 Subject: [PATCH] fix: updating the email field Relates to #5, https://gitlab.skynet.ie/compsoc1/skynet/ldap/backend/-/issues/20 --- src/bin/update_data.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/update_data.rs b/src/bin/update_data.rs index e09cf00..9db2602 100644 --- a/src/bin/update_data.rs +++ b/src/bin/update_data.rs @@ -22,7 +22,7 @@ struct WolvesResultUser { wolves_id: String, first_name: String, last_name: String, - email: String, + contact_email: String, student_id: Option, note: Option, expiry: String, @@ -91,7 +91,7 @@ async fn add_users_wolves(db: &Pool, server: &GuildId, user: &WolvesResu ", ) .bind(&user.wolves_id) - .bind(&user.email) + .bind(&user.contact_email) .fetch_optional(db) .await {