Compare commits
2 Commits
3e859ebc7b
...
c5af1e4cf8
Author | SHA1 | Date | |
---|---|---|---|
c5af1e4cf8 | |||
ab565f1369 |
@ -58,7 +58,7 @@ impl Notification {
|
||||
pub async fn for_user(db: &SqlitePool, user: &User) -> Vec<Self> {
|
||||
sqlx::query_as!(
|
||||
Self,
|
||||
"SELECT * FROM notification WHERE user_id = ?",
|
||||
"SELECT * FROM notification WHERE user_id = ? ORDER BY created_at DESC",
|
||||
user.id
|
||||
)
|
||||
.fetch_all(db)
|
||||
|
Loading…
Reference in New Issue
Block a user