Compare commits
No commits in common. "c5af1e4cf8deacdbcc2f81b3c27eeec0c1c68f70" and "3e859ebc7bae77b10faf231ee5230629a6ed9b9d" have entirely different histories.
c5af1e4cf8
...
3e859ebc7b
@ -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 = ? ORDER BY created_at DESC",
|
"SELECT * FROM notification WHERE user_id = ?",
|
||||||
user.id
|
user.id
|
||||||
)
|
)
|
||||||
.fetch_all(db)
|
.fetch_all(db)
|
||||||
|
Loading…
Reference in New Issue
Block a user