fix: mixed up the values

This commit is contained in:
silver 2023-07-30 02:45:52 +01:00
parent 0023e52f79
commit 970e566dea

View file

@ -173,9 +173,9 @@ async fn account_mail_get_uid(db: &Pool<Sqlite>, mail: &str) -> Option<String> {
async fn account_id_get_uid(db: &Pool<Sqlite>, id: &str) -> Option<String> { async fn account_id_get_uid(db: &Pool<Sqlite>, id: &str) -> Option<String> {
match sqlx::query_as::<_, Accounts>( match sqlx::query_as::<_, Accounts>(
r#" r#"
SELECT student_id SELECT user
FROM accounts FROM accounts
WHERE mail == ? WHERE student_id == ?
"#, "#,
) )
.bind(id) .bind(id)