fix: mixed up the values
This commit is contained in:
parent
0023e52f79
commit
970e566dea
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue