fix: slight duplicate removal
This commit is contained in:
parent
8c81fb864a
commit
a8c1cc9cf1
3 changed files with 22 additions and 26 deletions
|
@ -341,21 +341,17 @@ pub mod committee {
|
|||
}
|
||||
|
||||
async fn get_committees(db: &Pool<Sqlite>) -> Vec<Committees> {
|
||||
match sqlx::query_as::<_, Committees>(
|
||||
sqlx::query_as::<_, Committees>(
|
||||
r#"
|
||||
SELECT *
|
||||
FROM committees
|
||||
"#,
|
||||
)
|
||||
.fetch_all(db)
|
||||
.await
|
||||
{
|
||||
Ok(a) => a,
|
||||
Err(e) => {
|
||||
dbg!(e);
|
||||
vec![]
|
||||
}
|
||||
}
|
||||
.fetch_all(db)
|
||||
.await.unwrap_or_else(|e| {
|
||||
dbg!(e);
|
||||
vec![]
|
||||
})
|
||||
}
|
||||
|
||||
async fn get_server_member_discord(db: &Pool<Sqlite>, user: &i64) -> Option<Wolves> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue