fix?: now properly sends teh reset emails
All checks were successful
Build / build (push) Successful in 7m48s
Build / deploy (push) Successful in 21s

This commit is contained in:
silver 2025-03-11 11:07:00 +00:00
parent 73013f41f0
commit 35896efa04
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -162,7 +162,7 @@ pub mod password {
Some(x) => x,
};
if let Ok(res) = sqlx::query_as::<_, AccountsRecovery>(
match sqlx::query_as::<_, AccountsRecovery>(
r#"
SELECT *
FROM accounts JOIN accounts_wolves ON accounts.id_wolves = accounts_wolves.id_wolves
@ -174,8 +174,13 @@ pub mod password {
.fetch_all(pool)
.await
{
if !res.is_empty() {
return Some(res[0].to_owned());
Ok(res) => {
if !res.is_empty() {
return Some(res[0].to_owned());
}
}
Err(e) => {
dbg!(e);
}
}