feat: moved the update server icon to the main thread

This commit is contained in:
silver 2025-07-20 23:12:02 +01:00
parent 227db8a741
commit feff293043
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D
5 changed files with 40 additions and 86 deletions

View file

@ -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