feat: moved the update server icon to the main thread
This commit is contained in:
parent
227db8a741
commit
feff293043
5 changed files with 40 additions and 86 deletions
|
@ -93,7 +93,7 @@ pub(crate) mod user {
|
|||
}
|
||||
}
|
||||
|
||||
async fn get_current_icon(db: &Pool<Sqlite>) -> Option<ServerIcons> {
|
||||
pub async fn get_current_icon(db: &Pool<Sqlite>) -> Option<ServerIcons> {
|
||||
match sqlx::query_as::<_, ServerIcons>(
|
||||
"
|
||||
SELECT * from server_icons ORDER BY id DESC LIMIT 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue