From 970e566dea8e2cd7608507683966328b5524ecb0 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sun, 30 Jul 2023 02:45:52 +0100 Subject: [PATCH] fix: mixed up the values --- src/bin/update_groups.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)