diff --git a/src/bin/update_groups.rs b/src/bin/update_groups.rs index 275c329..fca05a8 100644 --- a/src/bin/update_groups.rs +++ b/src/bin/update_groups.rs @@ -173,9 +173,9 @@ async fn account_mail_get_uid(db: &Pool, mail: &str) -> Option { async fn account_id_get_uid(db: &Pool, id: &str) -> Option { match sqlx::query_as::<_, Accounts>( r#" - SELECT student_id + SELECT user FROM accounts - WHERE mail == ? + WHERE student_id == ? "#, ) .bind(id)