bugfix-mobile-menu #319

Merged
philipp merged 9 commits from bugfix-mobile-menu into staging 2024-03-28 09:08:39 +01:00
Showing only changes of commit c5af1e4cf8 - Show all commits

View File

@ -58,7 +58,7 @@ impl Notification {
pub async fn for_user(db: &SqlitePool, user: &User) -> Vec<Self> { pub async fn for_user(db: &SqlitePool, user: &User) -> Vec<Self> {
sqlx::query_as!( sqlx::query_as!(
Self, Self,
"SELECT * FROM notification WHERE user_id = ?", "SELECT * FROM notification WHERE user_id = ? ORDER BY created_at DESC",
user.id user.id
) )
.fetch_all(db) .fetch_all(db)