From c1b42a81320a7091e200e966354cf2c839c9f08e Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Thu, 28 Mar 2024 12:41:08 +0000 Subject: [PATCH] feat: wolves is making a change to their API --- 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 cd9404f..414fbb7 100644 --- a/src/bin/update_data.rs +++ b/src/bin/update_data.rs @@ -99,7 +99,7 @@ async fn update_ldap(config: &Config, db: &Pool) { impl From<&WolvesResultUser> for AccountWolves { fn from(input: &WolvesResultUser) -> Self { AccountWolves { - id_wolves: input.wolves_id.parse::().unwrap_or(0), + id_wolves: input.member_id.parse::().unwrap_or(0), id_student: input.student_id.to_owned(), email: input.contact_email.to_owned(), expiry: input.expiry.to_owned(), @@ -112,7 +112,7 @@ impl From<&WolvesResultUser> for AccountWolves { #[derive(Deserialize, Serialize, Debug)] struct WolvesResultUser { committee: String, - wolves_id: String, + member_id: String, first_name: String, last_name: String, contact_email: String,