Sort notifications
This commit is contained in:
parent
b50da3e3a4
commit
6c050a37e6
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ pub async fn get_notifications(
|
||||||
LEFT JOIN actor_profile AS post_author
|
LEFT JOIN actor_profile AS post_author
|
||||||
ON post.author_id = post_author.id
|
ON post.author_id = post_author.id
|
||||||
WHERE recipient_id = $1
|
WHERE recipient_id = $1
|
||||||
|
ORDER BY notification.created_at DESC
|
||||||
",
|
",
|
||||||
&[&recipient_id],
|
&[&recipient_id],
|
||||||
).await?;
|
).await?;
|
||||||
|
|
Loading…
Reference in a new issue