fix default sort

This commit is contained in:
Philipp Hofer 2025-02-11 21:39:06 +01:00
parent da793fec2d
commit 3008264261

View File

@ -591,7 +591,7 @@ WHERE lower(name)=?
}
pub async fn all(db: &SqlitePool) -> Vec<Self> {
Self::all_with_order(db, "last_access", true).await
Self::all_with_order(db, "last_access", false).await
}
pub async fn all_with_order(db: &SqlitePool, sort: &str, asc: bool) -> Vec<Self> {